SMAHA04030_예약접수[일반건진].xrw 159 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 공단건진 예약접수
  4. * 설 명 :
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  8. * 수정이력 : 2009년 6월 12일
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>예약/접수[일반건진]</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <testcdlst>
  20. <item1>
  21. <sel/>
  22. <testcd/>
  23. <oldordcd/>
  24. <testnm/>
  25. <scoreamt/>
  26. <grupflag/>
  27. </item1>
  28. </testcdlst>
  29. <pkgaddlst>
  30. <item>
  31. <sel/>
  32. <cmpynm/>
  33. <pkgcd/>
  34. <pkgnm/>
  35. <mancnfmamt/>
  36. <womcnfmamt/>
  37. <confromdd/>
  38. <contodd/>
  39. <conseq/>
  40. <conhistseq/>
  41. <pkgflag/>
  42. <uncocd/>
  43. <cmpycd/>
  44. </item>
  45. </pkgaddlst>
  46. <list>
  47. <rsrvlst>
  48. <pid/>
  49. <pnm/>
  50. <sexage/>
  51. <rsrvdttm/>
  52. <lastupdtrid/>
  53. <lastupdtdt/>
  54. <statflag/>
  55. <cmpynm/>
  56. <rsrvdd/>
  57. <rsrvno/>
  58. </rsrvlst>
  59. <acptlst>
  60. <pid/>
  61. <pnm/>
  62. <sexage/>
  63. <acptflag/>
  64. <acptdttm/>
  65. <rsrvdt/>
  66. <lastupdtrid/>
  67. <lastupdtdt/>
  68. <cmpynm/>
  69. <rsrvdd/>
  70. <rsrvno/>
  71. </acptlst>
  72. <cncllst>
  73. <pid/>
  74. <pnm/>
  75. <sexage/>
  76. <cncldttm/>
  77. <lastupdtrid/>
  78. <lastupdtdt/>
  79. <cmpynm/>
  80. <statflag/>
  81. <rsrvdd/>
  82. <rsrvno/>
  83. </cncllst>
  84. <listinfo>
  85. <acptcnt/>
  86. <rsrvcnt/>
  87. <rcptcnt/>
  88. <cnclcnt/>
  89. <holdcnt/>
  90. <failcnt/>
  91. </listinfo>
  92. <sndlst>
  93. <pid/>
  94. <pnm/>
  95. <sexage/>
  96. <acptdt/>
  97. <lastupdtrid/>
  98. <lastupdtdt/>
  99. <rsrvdd/>
  100. <rsrvno/>
  101. </sndlst>
  102. </list>
  103. <info>
  104. <patinfo>
  105. <item>
  106. <pid/>
  107. <rgstno1/>
  108. <rgstno2/>
  109. <hngnm/>
  110. <engnm/>
  111. <sex/>
  112. <age/>
  113. <brthdd/>
  114. <zipcd11/>
  115. <zipcd12/>
  116. <zipcdseq1/>
  117. <addr1/>
  118. <detladdr1/>
  119. <mpphon/>
  120. <telno/>
  121. <emailid/>
  122. <emailtype/>
  123. <healexampid/>
  124. <emailkind/>
  125. <zipcd21/>
  126. <zipcd22/>
  127. <zipcdseq2/>
  128. <addr2/>
  129. <detladdr2/>
  130. <psptno/>
  131. <brthareacnts/>
  132. <pidcretfg/>
  133. <patm_insuid/>
  134. <patm_insukind/>
  135. <patm_insucd/>
  136. </item>
  137. </patinfo>
  138. <rsrvacptinfo>
  139. <item>
  140. <rsrvdd/>
  141. <rsrvno/>
  142. <healexamdetlflag/>
  143. <hopedd/>
  144. <rsrvtm/>
  145. <pid/>
  146. <orddd/>
  147. <healexampid/>
  148. <rcptstat/>
  149. <disccd/>
  150. <cmpyflag/>
  151. <cmpycd/>
  152. <bizoffccd/>
  153. <deptcd/>
  154. <clntempid/>
  155. <entcodd/>
  156. <jobkindflag/>
  157. <insucorpbrchcd/>
  158. <insutrgtflag/>
  159. <insuflag/>
  160. <relacd/>
  161. <plceflag/>
  162. <scndhptstrgtyn/>
  163. <oraltestyn>N</oraltestyn>
  164. <freecncrtrgtyn/>
  165. <livcncrtrgtyn/>
  166. <livcncrflag/>
  167. <stmccncrflag/>
  168. <stmccncryn/>
  169. <largeintescncrflag/>
  170. <largeintescncryn/>
  171. <mamcncryn/>
  172. <mamcncrflag/>
  173. <cervcncrflag/>
  174. <cervcncryn/>
  175. <remcnts/>
  176. <rsrvflag/>
  177. <rsltcnstflag/>
  178. <rsltcnstrsrvdd/>
  179. <jobposcd/>
  180. <empid/>
  181. <healcntrcd/>
  182. <spclhealexamflag/>
  183. <schlgrde/>
  184. <clsid/>
  185. <studid/>
  186. <medicostyn/>
  187. <insuclamyn/>
  188. <judgdrid/>
  189. <statflag/>
  190. <calcyn/>
  191. <pkgcd/>
  192. <conseq/>
  193. <pkguncocd/>
  194. <ownuncoamt/>
  195. <cmpynm/>
  196. <bizoffcnm/>
  197. <deptnm/>
  198. <healcntrnm/>
  199. <insucorpbrchnm/>
  200. <livcncrtrgtyn2/>
  201. <pkgnm/>
  202. <EkgYN/>
  203. <cmpynm/>
  204. <bizoffcnm/>
  205. <armyhos/>
  206. <oldhopedd/>
  207. <oldrsrvno/>
  208. <oldhealexamflag/>
  209. <acpt_insuid/>
  210. <acpt_insucd/>
  211. <subscrrrgstno1/>
  212. <subscrrrgstno2/>
  213. <subscrhngnm/>
  214. <ownbamt/>
  215. <healexamplacecd/>
  216. <etccd/>
  217. <dcamt/>
  218. <adddcamt/>
  219. <healexamagryn/>
  220. <canceragryn/>
  221. <oralagryn/>
  222. </item>
  223. <pkglst>
  224. <sel/>
  225. <pkgcd/>
  226. <pkgnm/>
  227. <rsrvdd/>
  228. <acptdd/>
  229. <acpttm/>
  230. <uncocd/>
  231. <statflag/>
  232. <manamt/>
  233. <womamt/>
  234. <conseq/>
  235. <pkgflag/>
  236. <lastupdtrid/>
  237. <lastupdtdt/>
  238. <disccd/>
  239. <calcscorcd/>
  240. </pkglst>
  241. <addlst>
  242. <sel/>
  243. <testflag/>
  244. <testcd/>
  245. <testnm/>
  246. <uncocd/>
  247. <scoreamt/>
  248. <prcptims/>
  249. <cmpydiscamt/>
  250. <examseq/>
  251. <calcscorcd/>
  252. <prcpno/>
  253. <prcpdd/>
  254. <m/>
  255. </addlst>
  256. <historylst/>
  257. <firstrslt/>
  258. </rsrvacptinfo>
  259. <histlst>
  260. <item>
  261. <orddd/>
  262. <pkgcd/>
  263. <pkgnm/>
  264. <cmpyflag/>
  265. <rsrvdd/>
  266. <rsrvno/>
  267. <lastupdtrid/>
  268. <lastupdtdt/>
  269. </item>
  270. </histlst>
  271. <rcptinfo>
  272. <totamt/>
  273. <payinsubamt/>
  274. <payownbamt/>
  275. <payhealcntramt/>
  276. <paycmpyamt/>
  277. <ownbamt/>
  278. <paydcamt/>
  279. </rcptinfo>
  280. <curlst>
  281. <ordinfo>
  282. <ordlst>
  283. <rsrvdd/>
  284. <rsrvtm/>
  285. <prcpdd/>
  286. <testcd/>
  287. <testnm/>
  288. <uncocd/>
  289. <dcflag/>
  290. <testflag/>
  291. <prcpexecdeptcd/>
  292. <lastupdtrid/>
  293. <lastupdtdt/>
  294. <prcpno/>
  295. <execprcpno/>
  296. <rcptstat/>
  297. <scoreamt/>
  298. </ordlst>
  299. </ordinfo>
  300. </curlst>
  301. <judgone>
  302. <judgcd/>
  303. <judgdetlcd/>
  304. <etcdetlnm/>
  305. <dulppkgcd/>
  306. </judgone>
  307. <taginfo>
  308. <rtime/>
  309. <tagno/>
  310. <suppstat/>
  311. <healexamplacecd/>
  312. </taginfo>
  313. <rsltcnstinfo>
  314. <choicnst>
  315. <outexamyn>N</outexamyn>
  316. <rsltcnstflag/>
  317. <rsltcnstdd/>
  318. <rsltcnstrsrvstarttm/>
  319. <rsltcnstrsrvendtm/>
  320. <rsltcnstremcnts/>
  321. <rsltrsrvid/>
  322. </choicnst>
  323. <cnstlst>
  324. <cnst>
  325. <outexamyn>N</outexamyn>
  326. <rsltcnstflag/>
  327. <rsltcnstdd/>
  328. <rsltcnstrsrvstarttm/>
  329. <rsltcnstrsrvendtm/>
  330. <rsltcnstremcnts/>
  331. <rsltrsrvid/>
  332. <rsltrsrvnm/>
  333. <rsltrsrvsaveyn/>
  334. </cnst>
  335. </cnstlst>
  336. </rsltcnstinfo>
  337. </info>
  338. <prntinfo>
  339. <prntyn>Y</prntyn>
  340. <prntlang>K</prntlang>
  341. </prntinfo>
  342. <testcdlst>
  343. <item1>
  344. <sel/>
  345. <testcd/>
  346. <oldordcd/>
  347. <testnm/>
  348. <scoreamt/>
  349. <grupflag/>
  350. </item1>
  351. </testcdlst>
  352. <seqprntdata/>
  353. <zipcodelist/>
  354. </main>
  355. <send>
  356. <srchrsrvdd/>
  357. <srchrsrvno/>
  358. <srchfromdd/>
  359. <srchtodd/>
  360. <srchhealexamdetlflag/>
  361. <srchpid/>
  362. <srchpnm/>
  363. <srchpid2/>
  364. <srchpnm2/>
  365. <srchinstcd/>
  366. <srchmode/>
  367. <srchhealexamflag/>
  368. <srchpkgcd/>
  369. <srchcmpycd/>
  370. <srchconseq/>
  371. <srchsex/>
  372. <srchjobflag/>
  373. <save>
  374. <instcd/>
  375. <userid/>
  376. </save>
  377. <savercpt>
  378. <opmi_out/>
  379. </savercpt>
  380. <srchorddd/>
  381. <srchcretno/>
  382. <selpkgexam>
  383. <sel/>
  384. <pkgcd/>
  385. <testnm/>
  386. <testcd/>
  387. <pkgflag/>
  388. <totpayamt/>
  389. <payinsubamt/>
  390. <payownbamt/>
  391. <payhealcntrbamt/>
  392. <paycmpybamt/>
  393. <paydcbamt/>
  394. <hopedd/>
  395. <uncocd/>
  396. <examflag/>
  397. </selpkgexam>
  398. <pkgcd/>
  399. <pkgnm/>
  400. <exmcd/>
  401. <exmnm/>
  402. <prtgubun/>
  403. <savecmpy/>
  404. <srchtagno/>
  405. <srchhealexamplacecd/>
  406. </send>
  407. <init>
  408. <srchmode>4</srchmode>
  409. <emailkind/>
  410. <srchhealexamdetlflag/>
  411. <srchhealexamflag/>
  412. <baseinfo>
  413. <healexamdetlflag/>
  414. <insutrgtflag/>
  415. <insuflag/>
  416. <plceflag/>
  417. <jobkindflag/>
  418. <spclhealexamflag/>
  419. <emailkind/>
  420. <cmpydetlcdlst/>
  421. <testflag/>
  422. <statlst/>
  423. <rsrvflaglst/>
  424. <ordstatlst/>
  425. <healexamplacelst/>
  426. <rsltcnstflaglst/>
  427. </baseinfo>
  428. <place>
  429. <healexamplacecd/>
  430. </place>
  431. </init>
  432. <hidden>
  433. <save/>
  434. <item/>
  435. <saveacpt>
  436. <rsrvdd/>
  437. <rsrvno/>
  438. </saveacpt>
  439. <cmpyinfodetl/>
  440. </hidden>
  441. <source/>
  442. <temp>
  443. <addr>
  444. <zipcd/>
  445. <addrdetl/>
  446. </addr>
  447. <templst/>
  448. <rcptinfo>
  449. <hidden/>
  450. </rcptinfo>
  451. <cdlst/>
  452. <acptdtl>
  453. <addlist/>
  454. </acptdtl>
  455. <rcptno_out/>
  456. <cmpyinfo/>
  457. <exeinfo/>
  458. <screencd>SMAHA04030</screencd>
  459. </temp>
  460. </root>
  461. </instance>
  462. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  463. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  464. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  465. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  466. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  467. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  468. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  469. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  470. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  471. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  472. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  473. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  474. <script type="javascript" ev:event="xforms-ready">
  475. <![CDATA[
  476. fGetBaseInfo();
  477. fSrchDtInit();
  478. fInitInfo();
  479. fInitList();
  480. model.toggle("case_acpt");
  481. button1.selected= true ;
  482. fSetBtnStat();
  483. fGetList();
  484. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag","G01");
  485. chk_healexamdetlflag.refresh();
  486. model.removenode("/root/send/selpkgexam");
  487. ]]>
  488. </script>
  489. <submission id="TRZBC00101"/>
  490. <submission id="TRAHA00001"/>
  491. <submission id="TRAHA00002"/>
  492. <submission id="TRAHA00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tag"/>
  493. <submission id="TXAHA00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/taginfo" resultref="/root/tag"/>
  494. <submission id="TRPMC03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/result"/>
  495. <submission id="TXAHA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  496. <submission id="TXAHA00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/tmp"/>
  497. <submission id="TRAHA04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
  498. <submission id="TRAHA04033" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/info"/>
  499. <submission id="TRAHA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  500. <submission id="TRAHA00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/pkgtestcdlst"/>
  501. <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
  502. <submission id="TRAHA00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/info/histlst"/>
  503. <submission id="TRAHA05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/cmpyinfo"/>
  504. <submission id="TXAHA02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/rcptinfo/hidden"/>
  505. <submission id="TXAHA02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savercpt" replace="instance" resultref="/root/temp/rcptinfo/hidden"/>
  506. <submission id="TRAHA00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/info/curlst/ordinfo"/>
  507. <submission id="TRAHA00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/rsrvacptkey"/>
  508. <submission id="TRAHA00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/cdlst"/>
  509. <submission id="TRAHA02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/acptdtl"/>
  510. <submission id="TRAHA02105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/rcptno_out"/>
  511. <submission id="TXAHA00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" replace="instance" resultref="/root/tmp"/>
  512. <submission id="TXAHA00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tmp" resultref="/root/hidden"/>
  513. <submission id="TXAHA00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/main/info/rcptinfo"/>
  514. <submission id="TRAHA00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testcdlst"/>
  515. <submission id="TXAHA04032" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/tmp"/>
  516. <submission id="TRAHA00509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/priceamt" replace="instance" resultref="/root/temp/priceamt"/>
  517. <submission id="TRAHA00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/sytsrsrvchk"/>
  518. <submission id="TRAHA00014" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/test" replace="instance" resultref="/root/tmp"/>
  519. <submission id="TXAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/rsltsave" replace="instance" resultref="/root/hidden"/>
  520. <submission id="TRAHA00431" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/pkgaddlst"/>
  521. <submission id="TRAHA04032" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/send/selpkgexam"/>
  522. <submission id="TRAHA04012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/info"/>
  523. <submission id="TRAHA00013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/test" replace="instance" resultref="/root/tmp"/>
  524. <submission id="TRAHB00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cmpyinfodetl"/>
  525. <submission id="TRAHA04034" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/seqprntdata"/>
  526. <submission id="TXAHA04033" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savecmpy" replace="instance" resultref="/root/temp/exeinfo"/>
  527. <submission id="TXAHA04034" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp/exeinfo"/>
  528. <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/zipcodelist"/>
  529. <submission id="TXAHA00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/tmp"/>
  530. </model>
  531. <script type="javascript">
  532. <![CDATA[
  533. /**
  534. *기본정보 가져오기
  535. */
  536. function fGetBaseInfo(){
  537. //일반건진상세구분, 직역구분, 대상구분, 장소구분, 직종구분, 특검구분, EMAIL계정
  538. zbcfGetCodeList( new Array("A0070","A0108" ,"A0109", "A0110", "A0112" ,"A0111","A0120", "A0117" , "A0107" , "A0115", "M0011"),
  539. new Array("/root/init/baseinfo/healexamdetlflag" // 일반건진상세구분
  540. , "/root/init/baseinfo/insutrgtflag" // 직역구분
  541. , "/root/init/baseinfo/insuflag" // 대상구분
  542. , "/root/init/baseinfo/plceflag" // 장소구분
  543. , "/root/init/baseinfo/jobkindflag" //직종구분
  544. , "/root/init/baseinfo/spclhealexamflag" //특검구분
  545. , "/root/init/baseinfo/emailkind" //email 계정
  546. , "/root/init/baseinfo/testflag"
  547. , "/root/init/baseinfo/statlst"
  548. , "/root/init/baseinfo/rsrvflaglst"
  549. ,"/root/init/baseinfo/ordstatlst"
  550. ) );
  551. submit("TRZBC00101");
  552. healGetCodeList( new Array("S600")
  553. , new Array("/root/init/baseinfo/healexamplacelst") );
  554. model.removenode("/root/init/baseinfo/healexamplacelst/S600[1]");
  555. // submit 방식 모든 공통코드 전체항목이 조회 됨
  556. healGetCodeListSubmit( new Array("S080")
  557. , new Array("/root/init/baseinfo/rsltcnstflaglst"), false);
  558. model.makeValue("/root/send/srchpkgflag", "P");
  559. model.makeValue("/root/send/srchhealexamflag", "G");
  560. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag","G01");
  561. model.makeValue("/root/main/info/rsrvacptinfo/item/etccd","F13");
  562. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamagryn","N");
  563. model.makeValue("/root/main/info/rsrvacptinfo/item/canceragryn","N");
  564. model.makeValue("/root/main/info/rsrvacptinfo/item/oralagryn","N");
  565. model.makeValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag"));
  566. model.makeValue("/root/send/srchpkgflag", "");
  567. model.makeValue("/root/send/srchetccd", model.getValue("/root/main/info/rsrvacptinfo/item/etccd"));
  568. submit("TRAHA00431");//프로파일 뛰우기
  569. submit("TRAHA00109");//검사항목 뛰우기
  570. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
  571. submit("TRAHA00104");
  572. }
  573. /**
  574. *입력항목 초기화
  575. */
  576. function fInitInfo(){
  577. model.resetInstanceNode("/root/main/info/patinfo");
  578. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamflag","G");
  579. model.resetInstanceNode("/root/send/selpkgexam");
  580. model.removenode("/root/main/info/judgone");
  581. fInitRsrvAcptInfo();
  582. for(var i = 1; i <= model.getXPathValue("count(/root/main/pkgaddlst/item)"); i++) {
  583. model.setValue("/root/main/pkgaddlst/item[" + i + "]/sel", "N");
  584. grd_pkglst.isReadOnly(i, grd_pkglst.colRef("sel")) = false;
  585. }
  586. model.setValue("/root/send/srchrsrvdd","");
  587. model.setValue("/root/send/srchrsrvno","");
  588. // grd_pkglst.isReadonly(1, grd_pkglst.colRef("sel"), grd_pkglst.rows, grd_pkglst.colRef("sel")) = false;
  589. // model.refresh();
  590. //fSetBtnStat();
  591. }
  592. /**
  593. * 접수 정보 초기화
  594. */
  595. function fInitRsrvAcptInfo(){
  596. model.resetInstanceNode("/root/main/info/rsrvacptinfo");
  597. model.resetInstanceNode("/root/main/info/rcptinfo");
  598. model.resetInstanceNode("/root/main/info/taginfo");
  599. model.resetInstanceNode("/root/main/info/rsltcnstinfo/cnstlst/cnst");
  600. model.resetInstanceNode("/root/main/info/rsltcnstinfo/choicnst");
  601. model.removeNodeset("/root/main/info/rsrvacptinfo/pkglst");
  602. model.removeNodeset("/root/main/info/rsrvacptinfo/addlst");
  603. model.removeNodeset("/root/main/info/rsrvacptinfo/histlst");
  604. model.removeNodeset("/root/main/info/rsrvacptinfo/curlst");
  605. var curDD = getCurrentDate();
  606. model.makeValue("/root/main/info/rsrvacptinfo/item/orddd" , curDD );
  607. model.makeValue("/root/main/info/rsrvacptinfo/item/hopedd" , curDD);
  608. // model.makeValue("/root/main/info/rsrvacptinfo/item/entcodd" , curDD);
  609. //cmb_healexamdetlflag.refresh();
  610. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag" , "G01");
  611. // model.makeValue("/root/main/info/rsrvacptinfo/item/etccd" , "F13");
  612. // model.setValue( cmb_healexamdetlflag.attribute("ref"), cmb_srchhealexamdetlflag.value );
  613. model.makeValue("/root/main/info/rsrvacptinfo/item/plceflag" , "2");//내원
  614. model.makeValue("/root/main/info/rsrvacptinfo/item/insutrgtflag" , "K");//직장
  615. model.makeValue("/root/main/info/rsrvacptinfo/item/insuflag" , "1");//직장
  616. model.makeValue("/root/main/info/rsrvacptinfo/item/scndhptstrgtyn" , "N");//2차간염대상
  617. model.makeValue("/root/main/info/rsrvacptinfo/item/oraltestyn" , "Y");//구강검사대상여부
  618. model.makeValue("/root/main/info/rsrvacptinfo/item/freecncrtrgtyn" , "N");//무료암대상여부
  619. model.makeValue("/root/main/info/rsrvacptinfo/item/livcncrtrgtyn" , "N");//간암검사대상여부
  620. model.makeValue("/root/main/info/rsrvacptinfo/item/livcncrtrgtyn" , "N");//간암검사대상여부
  621. if(model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag")=="G05"){
  622. model.makeValue("/root/main/info/rsrvacptinfo/item/pkguncocd" , "V01");//청구구분 -개인
  623. }else{
  624. model.makeValue("/root/main/info/rsrvacptinfo/item/pkguncocd" , "V03");//청구구분 -공단
  625. }
  626. model.makeValue("/root/main/info/rsrvacptinfo/item/cmpyflag" , "N"); //청구구분 -공단
  627. model.makeValue("/root/main/info/rsrvacptinfo/item/disccd" , "-");//할인코드
  628. model.makeValue("/root/main/info/rsrvacptinfo/item/rsrvflag" , "01");//예약구분
  629. model.makeValue("/root/main/info/rsrvacptinfo/item/etccd" , "F13"); //선택 패키지 구분
  630. model.makeValue( rdo_outexamyn.attribute("ref") , "N");
  631. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamagryn","N");
  632. model.makeValue("/root/main/info/rsrvacptinfo/item/canceragryn","N");
  633. model.makeValue("/root/main/info/rsrvacptinfo/item/oralagryn","N");
  634. rdo_outexamyn.dispatch("xforms-value-changed");
  635. btn_tag.attribute("text") = "태그지급";
  636. ipt_tagno.disabled = false;
  637. btn_fstjudg.dispatch("DOMActivate");
  638. rdo_healexamplacecd.refresh();
  639. if(rdo_healexamplacecd.value != "" ) {
  640. rdo_healexamplacecd.dispatch("xforms-select"); // 건진장소 default 셋팅
  641. }else {
  642. var sFlag=fGetHealExamPlaceFlag();
  643. if (sFlag == "G" ) {
  644. rdo_healexamplacecd.select(0);
  645. chk_healexamdetlflag.select(0);
  646. } else {
  647. rdo_healexamplacecd.select(1);
  648. chk_healexamdetlflag.select(1);
  649. }
  650. }
  651. // model.setValue(rdo_insutrgtflag.attribute("ref") , "K"); //직장
  652. // model.setValue(cmb_insuflag.attribute("ref") , "1"); //직장
  653. // model.setValue(rdo_scndhptstrgtyn.attribute("ref") , "N"); //2차간염대상
  654. // model.setValue(rdo_oraltestyn.attribute("ref") , "Y"); //구강검사대상여부
  655. // model.setValue(rdo_freecncrtrgtyn.attribute("ref") , "N"); //무료암대상여부
  656. // model.setValue(rdo_livcncrtrgtyn.attribute("ref") , "N"); //간암검사대상여부
  657. // model.setValue(cmb_uncocd.attribute("ref") , "V03"); //청구구분 -공단
  658. // model.setValue(cmb_disccd.attribute("ref") , "-"); //할인코드
  659. // model.setValue(cmb_rsrvflag.attribute("ref") , "01"); //예약구분
  660. // model.setValue("/root/main/info/rsrvacptinfo/item/cmpyflag" , "N"); //청구구분 -공단
  661. // model.toggle("case_pkg");
  662. // btn_pkglst.selected= true;
  663. // model.setFocus("ipt_rgstno1");
  664. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamflag","G");
  665. }
  666. //예약시간 선택
  667. function fGetRsrvDateTime(vMode, rsrvddObj, rsrvtmObj){
  668. setParameter ("SPAHA00100_PARAM1", vMode);
  669. setParameter ("SPAHA00100_PARAM2", ipt_rsrvdd.value );
  670. setParameter ("SPAHA00100_PARAM3", opt_sex.value );
  671. if( rsrvddObj != null ) setParameter ("SPAHA00100_PARAM4", rsrvddObj.attribute("ref") );
  672. if( rsrvtmObj != null ) setParameter ("SPAHA00100_PARAM5", rsrvtmObj.attribute("ref") );
  673. setParameter ("SPAHA00100_PARAM6", "G" );
  674. setParameter ("SPAHA00100_PARAM7", "/root/main/info/rsrvacptinfo/item/rsltcnstdrid" );
  675. // 건진상세구분 추가 (손범성 추가)
  676. var idate = model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag");
  677. idate = idate.substr(0,3);
  678. setParameter ("SPAHA00100_PARAM8", idate);
  679. modal("SPAHA00100", "", "", "", "SPAHA00100", "/root/source","/root/target");
  680. }
  681. /**
  682. *조회List초기회
  683. */
  684. function fInitList(){
  685. model.removeNodeset("/root/main/list/rsrvlst");
  686. model.removeNodeset("/root/main/list/acptlst");
  687. model.removeNodeset("/root/main/list/cncllst");
  688. model.removeNodeset("/root/main/list/sndlst");
  689. model.resetInstanceNode("/root/main/list/listinfo");
  690. }
  691. /**
  692. *조회Date초기화
  693. */
  694. function fSrchDtInit(){
  695. var curDD = getCurrentDate();770925
  696. model.setValue(ipt_srchfromdd.attribute("ref") , curDD );
  697. model.setValue(ipt_srchtodd.attribute("ref") , curDD );
  698. model.setValue(cmb_srchhealexamdetlflag.attribute("ref") , "G01");
  699. // model.setValue(cmb_healexamdetlflag.attribute("ref") , "G01");
  700. }
  701. function fSaveRsrvInfo(){
  702. if( messageBox("건진예약정보를 ", "Q002") != 6 ) return ;
  703. var vHealExamFg = model.getValue("/root/main/info/rsrvacptinfo/item/healexamflag") == "" ? fGetHealExamFlag() : model.getValue("/root/main/info/rsrvacptinfo/item/healexamflag");
  704. var vRsrvdd = model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd");
  705. var vRsrvno = model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno");
  706. var vStatFlag = model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
  707. var vPid = model.getValue("/root/main/info/rsrvacptinfo/item/pid");
  708. var vHealExamDetlFg = model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag");
  709. var vCretno = model.getValue("/root/main/info/rsrvacptinfo/item/cretno");
  710. var vRsltcnstremcnts = model.getValue("/root/main/info/rsltcnstinfo/choicnst/rsltcnstremcnts");
  711. var nodeList = null;
  712. if( (vHealExamFg == "") || (vRsrvdd == "") || (vRsrvno == "") || (vRsrvno == "0") ) {
  713. messageBox("건진내역을 저장", "E001");
  714. return ;
  715. }
  716. nodeList = instance1.selectNodes("/root/main/info/rsltcnstinfo/cnstlst/cnst[rsltrsrvsaveyn='N']");
  717. if(nodeList.length < 1 ) {
  718. messageBox("결과상담내역이 ", "I004");
  719. return ;
  720. }
  721. var rCSV = getNodeListCSV(nodeList);
  722. model.makeNode("/root/send/save/rsltsave");
  723. model.resetInstanceNode("/root/send/save/rsltsave");
  724. model.makeValue("/root/send/save/rsltsave/healexamflag" , vHealExamFg);
  725. model.makeValue("/root/send/save/rsltsave/rsrvdd" , vRsrvdd);
  726. model.makeValue("/root/send/save/rsltsave/rsrvno" , vRsrvno);
  727. model.makeValue("/root/send/save/rsltsave/rsltcnstremcnts" , vRsltcnstremcnts);
  728. model.makeValue("/root/send/save/rsltsave/healexamdetlflag" ,vHealExamDetlFg );
  729. //건진장소구분에 의한 예약건진상세구분 세팅
  730. model.makeValue("/root/send/save/rsltsave/rsrvdetlflag" , vHealExamDetlFg );
  731. model.makeValue("/root/send/save/rsltsave/rsltrsrv" , rCSV);
  732. if( submit("TXAHA00104") == true ){
  733. ahafGetGnrlRsrvAcpDetltInfo(vRsrvdd, vRsrvno, vStatFlag, vPid);
  734. for(var i = 1; i <= model.getXPathValue("count(/root/main/info/rsrvacptinfo/addlst)"); i++) {
  735. model.makeNode("/root/send/selpkgexam[" + i + "]");
  736. model.copyNode("/root/send/selpkgexam[" + i + "]", "/root/main/info/rsrvacptinfo/addlst[" + i + "]");
  737. }
  738. datagrid6.rebuild();
  739. fInsuCnts();
  740. setGnrlCmpyInfo();
  741. fSetReCalcAmt();
  742. fInitPkgList();
  743. model.refresh();
  744. }
  745. }
  746. function fOperGrdRow(bAdd){
  747. var swt_idx = swt_acptlst.selectedIndex ;
  748. switch(swt_idx) {
  749. case 0:
  750. if( bAdd ) {
  751. grd_pkglst.addRow();
  752. grd_pkglst.valueMatrix(grd_pkglst.row, 1) = "Y";
  753. grd_pkglst.col = 2;
  754. grd_pkglst.editCell();
  755. }
  756. else grd_pkglst.addStatus(grd_pkglst.row,"delete");
  757. break;
  758. case 1 :
  759. if( bAdd ) {
  760. grd_addlst.addRow();
  761. grd_addlst.valueMatrix(grd_addlst.row, 1) = "Y";
  762. grd_addlst.col = 2;
  763. grd_addlst.editCell();
  764. }
  765. else grd_addlst.addStatus(grd_addlst.row,"delete");
  766. break;
  767. case 2 :
  768. if( bAdd ) {
  769. grd_curlst.addRow();
  770. grd_curlst.editCell();
  771. }
  772. else grd_curlst.addStatus(grd_curlst.row,"delete");
  773. break;
  774. default:
  775. break;
  776. }
  777. }
  778. /**
  779. * 업체별 영업소 및 부서정보 조회
  780. */ function fGetCmpyDetlCdList(){
  781. if( ipt_cmpycd.value == "" ) return ;
  782. var hopeDD = model.getValue("/root/main/info/rsrvacptinfo/item/hopedd");
  783. var appYear = "";
  784. if(hopeDD == "") {
  785. appYear = fGetCurrentYear();
  786. }else {
  787. appYear = hopeDD.substr(0 , 4);
  788. }
  789. fCheckNodeExist("/root/send/srchcmpycd", true);
  790. model.setValue("/root/send/srchcmpycd", ipt_cmpycd.value );
  791. model.makeValue("/root/send/srchappyear" , appYear);
  792. return submit("TRAHA05101");
  793. }
  794. /**
  795. * 검사 및 패키지 코드
  796. */
  797. function fAddSingleTestCd(){
  798. var idx = 0;
  799. var sDest = "";
  800. var swt_idx = swt_acptlst.selectedIndex ;
  801. var sCond = "";
  802. switch( swt_idx){
  803. case 0:
  804. idx = grd_pkglst.row ;
  805. sDest = grd_pkglst.attribute("nodeset") + "[" + idx + "]" ;
  806. sCond = grd_pkglst.valueMatrix(idx, 2);
  807. break;
  808. case 1:
  809. idx = grd_addlst.row ;
  810. sDest = grd_addlst.attribute("nodeset") + "[" + idx + "]" ;
  811. sCond = grd_addlst.valueMatrix(idx, 2);
  812. break;
  813. default :
  814. return ;
  815. break;
  816. }
  817. if( idx < 1) return ;
  818. fGetPkgCd("SMAHA01500", "P", "N","nm" , sCond, cmb_healexamdetlflag.value, opt_sex.value, sDest );
  819. }
  820. /**
  821. * 패키지리스트 초기화
  822. */
  823. function fInitPkgList(){
  824. model.makeValue("/root/send/srchpkgflag", "");
  825. model.makeValue("/root/send/srchhealexamflag", "G");
  826. model.makeValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag"));
  827. model.makeValue("/root/send/srchetccd" , "F13");
  828. model.makeValue("/root/main/info/rsrvacptinfo/item/etccd" , "F13")
  829. submit("TRAHA00431");
  830. for (i = 1; i <= grd_pkglst.rows ; i++){
  831. grd_pkglst.isReadOnly(i, grd_pkglst.colRef("sel")) = false;
  832. for (j=1 ; j<grd_addlst.rows ; j++) {
  833. if (grd_addlst.valueMatrix(j,grd_addlst.colRef("pkgcd")) == grd_pkglst.valueMatrix(i,grd_pkglst.colRef("pkgcd"))){
  834. grd_pkglst.valueMatrix(i,grd_pkglst.colRef("sel")) = "Y";
  835. grd_pkglst.isReadOnly(i, grd_pkglst.colRef("sel")) = true;
  836. }
  837. }
  838. }
  839. }
  840. /**
  841. * 예약/접수/취소/보류 리스트 조회 .
  842. */
  843. function fGetList(){
  844. fInitList();
  845. fsetDgFlag();
  846. if( isXPathTextNull( "/root/send/srchhealexamdetlflag") ||
  847. isXPathTextNull( "/root/send/srchtodd") ||
  848. isXPathTextNull( "/root/send/srchfromdd")) return ;
  849. model.setValue("/root/send/srchhealexamflag", "G");
  850. var vMode = fGetGnrlSrchMode();
  851. if( vMode == "") return ;
  852. model.setValue("/root/send/srchmode", vMode );
  853. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
  854. openLoadingBar("건진자 리스트를 가져오는 중입니다..") ;//처리중 화면을 오픈한다.
  855. submit("TRAHA00103");
  856. closeLoadingBar() ;//처리중 화면을 close한다.
  857. var sel = swt_acptlst.selectedIndex;
  858. switch(sel) {
  859. case 2 : fSetRsrvBackGroud(grd_acptlst); break;
  860. default : break;
  861. }
  862. }
  863. function fSetRsrvBackGroud(vGrd) {
  864. vGrd.rebuildStyle(); // 스타일 초기화
  865. for(var i=1; i <= vGrd.rows; i++) {
  866. var rcptstatyn = vGrd.valueMatrix( i , vGrd.colRef("rcptstatyn"));
  867. if(rcptstatyn == "N") {
  868. vGrd.rowStyle( i , "data", "background-color") = "#ccffcc";
  869. }
  870. }
  871. }
  872. /**
  873. * 예약접수 건진자 리스트 조회 모드 설정
  874. * 예약1/예약등록2/접수3/취소4~6/2차대상자 8
  875. */
  876. function fGetGnrlSrchMode(){
  877. var idx = swt_acptlst.selectedIndex ;
  878. if(idx == 3){
  879. idx= 2 ;
  880. }
  881. idx++;
  882. return idx;
  883. }
  884. function setAmt(i)
  885. {
  886. var healcureflag = model.getValue("/root/main/info/rsrvacptinfo/item/acpt_insuid");
  887. var examflag = model.getValue("/root/send/selpkgexam[" + i +"]/examflag");
  888. healcureflag = healcureflag.substr(0, 1);
  889. //의료수급권자일 경우 100% 보건소 부담
  890. if(healcureflag == 9 && (examflag == "G003" || examflag == "G004" || examflag == "G005" || examflag == "G006" || examflag == "G007"))
  891. {
  892. model.makeValue("/root/send/selpkgexam["+i+"]/uncocd", "V05");
  893. model.makeValue("/root/send/selpkgexam["+i+"]/payhealcntrbamt", model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt"));
  894. return;
  895. }
  896. //일반건진이나 생애건진은 공단부담
  897. if( examflag == "G001" || examflag == "G002" || examflag == "G100" )
  898. {
  899. model.makeValue("/root/send/selpkgexam["+i+"]/uncocd", "V03");
  900. model.makeValue("/root/send/selpkgexam["+i+"]/payinsubamt", model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt"));
  901. return;
  902. }
  903. //암별로 노드 정의
  904. var cancerNode = "";
  905. if(examflag == "G003")
  906. {
  907. cancerNode = "/root/main/info/rsrvacptinfo/item/stmccncrflag";
  908. }
  909. if(examflag == "G004")
  910. {
  911. cancerNode = "/root/main/info/rsrvacptinfo/item/largeintescncrflag";
  912. }
  913. if(examflag == "G005")
  914. {
  915. cancerNode = "/root/main/info/rsrvacptinfo/item/livcncrflag";
  916. }
  917. if(examflag == "G006")
  918. {
  919. cancerNode = "/root/main/info/rsrvacptinfo/item/mamcncrflag";
  920. }
  921. //자궁경부암일 경우 100% 공단부담
  922. if(model.getValue("/root/main/info/rsrvacptinfo/item/cervcncrflag") != "1" && examflag == "G007") //자궁경부암
  923. {
  924. model.makeValue("/root/send/selpkgexam["+i+"]/uncocd", "V11");
  925. model.makeValue("/root/send/selpkgexam["+i+"]/payinsubamt", model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt"));
  926. model.makeValue("/root/send/selpkgexam["+i+"]/payownbamt", 0);
  927. return;
  928. }
  929. //본인부담 100%
  930. if(model.getValue(cancerNode) == 1)
  931. {
  932. model.makeValue("/root/send/selpkgexam["+i+"]/payownbamt", parseInt(model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt")));
  933. model.makeValue("/root/send/selpkgexam["+i+"]/uncocd", "V01");
  934. return;
  935. }
  936. //본인부담 10%
  937. if(model.getValue(cancerNode) == 2)
  938. {
  939. model.makeValue("/root/send/selpkgexam["+i+"]/payinsubamt", parseInt(model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt")) * 0.9);
  940. model.makeValue("/root/send/selpkgexam["+i+"]/payownbamt", parseInt(model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt")) * 0.1);
  941. model.makeValue("/root/send/selpkgexam["+i+"]/uncocd", "V11");
  942. return;
  943. }
  944. //공단부담 100%
  945. if(model.getValue(cancerNode) == 3)
  946. {
  947. model.makeValue("/root/send/selpkgexam["+i+"]/payinsubamt", parseInt(model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt")));
  948. model.makeValue("/root/send/selpkgexam["+i+"]/uncocd", "V11");
  949. return;
  950. }
  951. //공단부담 90% + 보건소부담 10%
  952. if(model.getValue(cancerNode) == 4)
  953. {
  954. model.makeValue("/root/send/selpkgexam["+i+"]/payinsubamt", parseInt(model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt")) * 0.9);
  955. model.makeValue("/root/send/selpkgexam["+i+"]/payhealcntrbamt", parseInt(model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt")) * 0.1);
  956. model.makeValue("/root/send/selpkgexam["+i+"]/uncocd", "V11");
  957. return;
  958. }
  959. //if(parseInt(model.getValue("/root/main/info/patinfo/item/age")) == 40)
  960. //{
  961. // model.makeValue("/root/send/selpkgexam["+i+"]/uncocd", "V01");
  962. // model.makeValue("/root/send/selpkgexam["+i+"]/payinsubamt", model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt"));
  963. // return;
  964. //}
  965. //else
  966. //{
  967. model.makeValue("/root/send/selpkgexam["+i+"]/uncocd", "V01");
  968. model.makeValue("/root/send/selpkgexam["+i+"]/payownbamt", parseInt(model.getValue("/root/send/selpkgexam[" +i+ "]/totpayamt")));
  969. //}
  970. }
  971. function fSetGnrlAddList(vGrdObj, vTestCdCol, vSrcXPath, vDupCheck, vPkgYN , vPkgCd) {
  972. if( model.getValue("/root/temp/okflag") != "ok" ) return ;
  973. if( vGrdObj == null ) return ;
  974. if( vSrcXPath == "" ) return ;
  975. var cnt = getNodesetCount(vSrcXPath);
  976. var grdcnt = vGrdObj.rows;
  977. var vTestcd = "";
  978. var vTestnm = "";
  979. var i = 0;
  980. if( vPkgYN == "Y" ){
  981. for( i = 1 ; i <= cnt ; i++ ){
  982. vTestcd = model.getValue(vSrcXPath + "[" + i + "]/pkgcd" );
  983. vTestnm = model.getValue(vSrcXPath + "[" + i + "]/pkgnm" );
  984. if( vDupCheck == "Y" ) {
  985. if( fCheckDup(vGrdObj , vTestCdCol, vTestcd ) == false ){
  986. if( messageBox("중복되는 Pkg코드[" + vTestcd + " - " + vTestnm +"] 를 추가 ", "S001") != 6 ){
  987. continue ;
  988. }
  989. }
  990. }
  991. var danga = model.getValue(vSrcXPath + "[" + i + "]/scoreamt" );
  992. if(model.getValue("/root/main/info/rsrvacptinfo/item/cmpyflag") == "Y") {
  993. danga = parseInt(parseFloat(danga)* 0.1)*10;
  994. }else {
  995. danga = danga;
  996. }
  997. vGrdObj.addRow();
  998. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/sel");
  999. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/sel" , "Y" );
  1000. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/pkgflag");
  1001. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/pkgflag" , "A" );
  1002. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/pkgcd" , vTestcd );
  1003. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/pkgnm" ,vTestnm );
  1004. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/uncocd" );
  1005. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/uncocd" , "V03" );
  1006. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/scoreamt" );
  1007. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/scoreamt" ,danga);
  1008. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/addtotamt" );
  1009. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/addtotamt" ,danga);
  1010. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/calcscorcd" );
  1011. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/calcscorcd" ,model.getValue(vSrcXPath + "[" + i + "]/calcscorcd" ) );
  1012. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/payownbamt" , 0 );
  1013. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/totpayamt" , danga );
  1014. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/payinsubamt" ,0 );
  1015. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/payhealcntrbamt" ,0 );
  1016. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/paycmpybamt" ,danga );
  1017. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/paydcbamt" ,0 );
  1018. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/testdiscyn" ,model.getValue(vSrcXPath + "[" + i + "]/testdiscyn" ) );
  1019. grdcnt++;
  1020. }
  1021. } else {
  1022. for( i = 1 ; i <= cnt ; i++ ){
  1023. vTestcd = model.getValue(vSrcXPath + "[" + i + "]/testcd" );
  1024. vTestnm = model.getValue(vSrcXPath + "[" + i + "]/testnm" );
  1025. if( vDupCheck == "Y" ) {
  1026. if( fCheckDup(vGrdObj , vTestCdCol, vTestcd ) == false ){
  1027. if( messageBox("중복되는 검사코드[" + vTestcd + " - " + vTestnm +"] 를 추가 ", "S001") != 6 ){
  1028. continue ;
  1029. }
  1030. }
  1031. }
  1032. var danga = model.getValue(vSrcXPath + "[" + i + "]/scoreamt" );
  1033. if(model.getValue("/root/main/info/rsrvacptinfo/item/cmpyflag") == "Y") {
  1034. danga = parseInt(parseFloat(danga)* 0.1)*10;
  1035. }else {
  1036. danga = danga;
  1037. }
  1038. vGrdObj.addRow();
  1039. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/sel");
  1040. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/sel" , "Y" );
  1041. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/pkgflag");
  1042. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/pkgflag" , "A" );
  1043. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/testcd" , vTestcd );
  1044. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/pkgnm" , vTestnm );
  1045. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/uncocd" );
  1046. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/uncocd" , "V01" );
  1047. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/scoreamt" );
  1048. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/scoreamt" ,danga );
  1049. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/addtotamt" );
  1050. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/addtotamt" ,danga );
  1051. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/calcscorcd" );
  1052. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/calcscorcd",model.getValue(vSrcXPath + "[" + i + "]/calcscorcd" ) );
  1053. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/prcptims", "1" );
  1054. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/prcpdayno", "1" );
  1055. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/payownbamt" , danga );
  1056. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/totpayamt" , danga );
  1057. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/payinsubamt" ,0 );
  1058. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/payhealcntrbamt" ,0 );
  1059. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/paycmpybamt" ,0 );
  1060. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/paydcbamt" ,0 );
  1061. model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/testdiscyn",model.getValue(vSrcXPath + "[" + i + "]/testdiscyn" ) );
  1062. //묵음처방 구분 추가 (2007.10.11 BY 손주연 )
  1063. model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/grupflag" );
  1064. model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/grupflag" ,model.getValue(vSrcXPath + "[" + i + "]/grupflag" ) );
  1065. grdcnt++;
  1066. }
  1067. }
  1068. /*
  1069. * 패키지 내부검사 중복여부 체크
  1070. */
  1071. model.removeNodeSet("/root/send/test");
  1072. // for( i = 1; i <= vGrdObj.rows ; i++)
  1073. if(vGrdObj.rows >= 2){
  1074. for( i = 1; i <= vGrdObj.rows - 1 ; i++)// 고정행까지 추가하는거같아서 -1 했음.
  1075. {
  1076. model.makeValue("/root/send/test[" + i +"]/pkgcd" , model.getValue(vGrdObj.nodeset + "[" + i + "]/testcd"));
  1077. model.makeValue("/root/send/test[" + i +"]/grupflag" , model.getValue(vGrdObj.nodeset + "[" + i + "]/grupflag"));
  1078. }
  1079. if(vPkgCd != "") { model.makeValue("/root/send/test/srchpkgcd" , vPkgCd);}
  1080. if(vPkgCd != "") { model.makeValue("/root/send/test/healexamflag" , fGetHealExamFlag());}
  1081. model.removeNodeSet("/root/send/testcount");
  1082. submit("TRAHA00013",false);//패키지내 중복 체크*/
  1083. }
  1084. var testnm ="";
  1085. var testnmcount ="";
  1086. var cnt = getNodesetCount("/root/tmp/testcount/testcount");
  1087. if (cnt != 0)
  1088. {
  1089. for (var i=0;i <=cnt ; i++)
  1090. {
  1091. testnm = model.getValue("/root/tmp/testcount/testcount["+i+"]/testnm");
  1092. if (testnm!="")
  1093. {
  1094. testnmcount = testnmcount + testnm + "/";
  1095. }
  1096. }
  1097. messageBox(testnmcount + " 검사가 중복되었습니다","E999");
  1098. }
  1099. model.refresh();
  1100. }
  1101. /**
  1102. * 예약/접수정보를 저장
  1103. * Mode : 공통코드A0107참조
  1104. **A 예약
  1105. **B 예약보류
  1106. **C 예약확인
  1107. **D 예약취소
  1108. **E 접수
  1109. **F 접수취소
  1110. **G 결과
  1111. **H 판정
  1112. */
  1113. /**
  1114. * 예약/접수정보 check.
  1115. */
  1116. function fCheckAcpt(vMode){
  1117. var vRsvdd = "";
  1118. var vStatus = model.getValue("/main/info/rsrvacptinfo/item/status");
  1119. var vHealExamFlag = fGetHealExamFlag();
  1120. var age = model.getValue(opt_age.attribute("ref") ) ;
  1121. /* if( (age == "16") || (age == "44") || (age == "66") ){
  1122. if(messageBox("생애전환기건진 대상자 입니다!\n정보를 ", "Q002" ) !== 6) return false;
  1123. }
  1124. */
  1125. /* if( model.getValue( cmb_uncocd.attribute("ref") ) == "" ){
  1126. messageBox(" 청구방법을 ", "C001") ;
  1127. model.setFocus("cmb_uncocd");
  1128. return false;
  1129. }*/
  1130. //예약의 경우 예약일 입력 필수
  1131. if( vStatus == "C" ) {
  1132. if( !isRequiredGroup("ipt_rsrvdd") ) return false;
  1133. vRsvdd = model.getValue("/root/main/info/rsrvacptinfo/item/hopedd");
  1134. vRsvdd = vRsvdd.toDate("YYYYMMDD");
  1135. if( vRsvdd < getCurrentDate() ){
  1136. messageBox("예약일자가 현재일자 전으로 ", "E005");
  1137. model.setFocus("ipt_rsrvdd");
  1138. return false;
  1139. }
  1140. }
  1141. //접수
  1142. else
  1143. if( vMode == "E" ){
  1144. var i = 0;
  1145. var cnt = 0;
  1146. var selrows = 0;/*grd_pkglst.rows;
  1147. var selrows = 0;
  1148. for( i = 1; i < cnt ; i++){
  1149. if( grd_pkglst.valueMatrix(i, 1) == "Y" ) selrows++;
  1150. }
  1151. */
  1152. /*grd_pkglst.getUpdateData();
  1153. if( (selrows < 1) || (vData == "" )) {
  1154. alert(" 패키지를 입력하세요.");
  1155. return false;
  1156. } */
  1157. //직역구분
  1158. /* if( rdo_insutrgtflag.value == "" ) {
  1159. messageBox(" 직역구분을 ", "C002") ;
  1160. return false ;
  1161. }
  1162. //대상
  1163. if( cmb_insuflag.value == "" ) {
  1164. messageBox(" 대상구분을 ", "C002") ;
  1165. return false ;
  1166. }
  1167. var freecncryn = rdo_freecncrtrgtyn.value;
  1168. if( freecncryn == "Y" ){
  1169. if( ipt_healcntrcd.value == "" ) {
  1170. messageBox("무료암 대상자입니다.\r\n관할 보건소를 ", "C001");
  1171. model.setFocus("ipt_healcntrcd");
  1172. return false;
  1173. }
  1174. } */
  1175. }
  1176. /* if( ipt_insuid.value = "" ) {
  1177. alert("증번호를 입력하세요");
  1178. model.setFocus("ipt_insuid");
  1179. return false ;
  1180. }*/
  1181. return true;
  1182. }
  1183. /**
  1184. * 버튼 상태 변경
  1185. */
  1186. function fSetBtnStat(){
  1187. btn_rsrvcfm.disabled = true;
  1188. btn_acpt.disabled = true;
  1189. // btn_rcpt.disabled = false;
  1190. btn_acptcncl.disabled = true;
  1191. btn_rsrvcncl.disabled = true;
  1192. rdo_outexamyn.disabled = false;
  1193. cmb_rsltcnstflag.disabled = false;
  1194. btn_rsltcnstrsrv.disabled = false;
  1195. var vStat = model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
  1196. if ( vStat == "C" ){ //예약
  1197. btn_rsrvcncl.disabled = false;
  1198. btn_rsrvcfm.disabled = false;
  1199. btn_acpt.disabled = false;
  1200. }
  1201. else
  1202. if( vStat == "D"){ //예약취소
  1203. btn_rsrvcncl.disabled = true;
  1204. btn_rsrvcfm.disabled = false;
  1205. btn_acpt.disabled = false;
  1206. }
  1207. else
  1208. if( vStat == "E" ){//접수
  1209. btn_acptcncl.disabled = false;
  1210. btn_acpt.disabled = false;
  1211. }
  1212. else
  1213. if( vStat == "F" ){ //접수취소
  1214. btn_rsrvcfm.disabled = false;
  1215. btn_acpt.disabled = false;
  1216. }
  1217. else {
  1218. btn_rsrvcfm.disabled = false;
  1219. btn_acpt.disabled = false;
  1220. }
  1221. model.refresh();
  1222. }
  1223. function fPrntChrt(){
  1224. // var pkgcd = ipt_pkgcd.value;
  1225. var pkgcd = model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd");
  1226. if( pkgcd !="") {
  1227. pkgcd = pkgcd.substr(4,1);
  1228. if( pkgcd == "1" ){
  1229. exeReportPreview("RPAHA01501", "XMLSTR" , "" , "" , "false" , "", "", "", "", "true");
  1230. }
  1231. else
  1232. if( pkgcd == "2" ) {
  1233. // exeReportPreview("RPAHR00310", "XMLSTR", "", "", "false","","","","","true", "", "");
  1234. exeReportPreview("RPAHA01502", "XMLSTR" , "" , "" , "false" , "", "", "", "", "true");
  1235. }
  1236. }
  1237. }
  1238. /**
  1239. * 증번호 11자리수중 첫 자리가 1~4 : 지역(J), 5~6 : 공.교(G), 7~8 직장(K)
  1240. */ function fSetInsuTrgtFg(){
  1241. var insuid = ipt_insuid.value;
  1242. if( insuid != "" ) {
  1243. insuid = insuid.substr(0,1);
  1244. if( (insuid == "5" ) || (insuid == "6") ) insuid = "G";
  1245. else
  1246. if( (insuid == "7" ) || (insuid == "8") ) insuid = "K";
  1247. else insuid = "J";
  1248. rdo_insutrgtflag.value = insuid;
  1249. }
  1250. }
  1251. /**
  1252. * 무료암대상일 경우 관할 보건소 입력 필수
  1253. * 비대상일 경우 무료암구분 disable
  1254. * 대상구분 check 필요. 나이에따라 다름.
  1255. * 위암검사 :만 40세이상인 자로서 희망자
  1256. * 유방암검사 :만 40세이상인 여성희망자
  1257. * 대장암검사 :만 50세이상인 자로서 희망자
  1258. * 간암검사 :○ 당해연도전 2년간 2차검진결과 간장
  1259. 질환 유질환자 및 간암발생고위험군
  1260. 중 만40세 이상의 희망자
  1261. ○ 당해연도 2차검진결과 간장질환 유질환자 중 만40세 미만의 희망자
  1262. - 이 경우 간초음파 검사만 실시
  1263. * 자궁경부암검사 :만 30세 이상인 여성희망자
  1264. */ function fSetCncrCtrl(){
  1265. /* chx_stmccncryn.disabled = true;
  1266. chx_largeintescncryn.disabled = true;
  1267. chx_livcncrtrgtyn.disabled = true;
  1268. chx_mamcncryn.disabled = true;
  1269. chx_cervcncryn.disabled = true;
  1270. var freecncryn = rdo_freecncrtrgtyn.value;
  1271. if( freecncryn == "N" ){
  1272. return ;
  1273. }
  1274. chx_stmccncryn.disabled = false;
  1275. chx_largeintescncryn.disabled = false;
  1276. chx_livcncrtrgtyn.disabled = false;
  1277. chx_mamcncryn.disabled = false;
  1278. chx_cervcncryn.disabled = false; */
  1279. }
  1280. function fCheckFreeCncrTrgt(vMode) {
  1281. var freecncryn = rdo_freecncrtrgtyn.value;
  1282. if( freecncryn == "Y" ){
  1283. var sex = opt_sex.value;
  1284. var age = 0;
  1285. if( opt_age.value != "" ) age = parseInt(opt_age.value);
  1286. //위암검사 :만 40세이상인 자로서 희망자
  1287. switch (vMode) {
  1288. case 1:
  1289. if( chx_stmccncryn.value == "Y" ){
  1290. if( age < 40 ) {
  1291. messageBox("위암검사는 만 40세이상인 자로서 희망자에 한합니다." , "E999");
  1292. return false ;
  1293. }
  1294. model.setValue(cmb_stmccncrflag.attribute("ref"), "V12" );
  1295. cmb_stmccncrflag.refresh();
  1296. }
  1297. case 2:
  1298. if( chx_mamcncryn.value == "Y" ) {
  1299. if( ( sex != "F" ) || ( (sex == "F" ) && (age < 40) ) ) {
  1300. messageBox("유방암은 만 40세이상인 여성희망자에 한합니다." , "E999");
  1301. return false ;
  1302. }
  1303. model.setValue(cmb_mamcncrflag.attribute("ref"), "V12" );
  1304. cmb_mamcncrflag.refresh();
  1305. }
  1306. break;
  1307. case 3:
  1308. //대장암검사 :만 50세이상인 자로서 희망자
  1309. if( (chx_largeintescncryn.value == "Y" )&& ( age < 50 ) ){
  1310. messageBox("대장암검사는 만 50세이상인 자로서 희망자에 한합니다." , "E999");
  1311. return false;
  1312. model.setValue(cmb_mamcncrflag.attribute("ref"), "V12" );
  1313. cmb_mamcncrflag.refresh();
  1314. }
  1315. break;
  1316. case 4:
  1317. //자궁경부암 : 만 30세이상인 여성희망자
  1318. if( (chx_cervcncryn.value == "Y") &&
  1319. ( (sex != "F" ) || ( (sex == "F") && ( age < 30 ) ) ) ) {
  1320. alert("자궁경부암은 만 30세이상인 여성희망자에 한합니다.");
  1321. return false;
  1322. model.setValue(cmb_cervcncrflag.attribute("ref"), "V12" );
  1323. cmb_cervcncrflag.refresh();
  1324. }
  1325. break;
  1326. default :
  1327. break;
  1328. }
  1329. }
  1330. return true;
  1331. }
  1332. /**
  1333. * 건진내역 계산
  1334. 건진구분 :srchhealexamflag
  1335. 예약일자 :srchrsrvdd
  1336. 예약번호 :srchrsrvno
  1337. 등록번호 :srchpid
  1338. 기관코드 :srchinstcd
  1339. */ function fCalcAmt(vJobFlag){
  1340. var ret = -1;
  1341. // var vTmp = fGetHealExamFlag();
  1342. var vTmp = "G";
  1343. model.copyNode("/root/main/info/rsrvacptinfo/item","/root/tmp/reqacpt");
  1344. if( vTmp == "" ) return ret;
  1345. model.setValue("/root/send/srchhealexamflag", vTmp );
  1346. // vTmp = model.getValue(ipt_pid.attribute("ref"));
  1347. vTmp = model.getValue("/root/tmp/reqacpt/pid");
  1348. if( vTmp == "" ) return ret;
  1349. model.setValue("/root/send/srchpid", vTmp );
  1350. vTmp = model.getValue("/root/tmp/reqacpt/rsrvdd");
  1351. if( vTmp== "" ) return ret;
  1352. model.setValue("/root/send/srchrsrvdd", vTmp );
  1353. vTmp = model.getValue("/root/tmp/reqacpt/rsrvno");
  1354. if( vTmp == "" ) return ret;
  1355. model.setValue("/root/send/srchrsrvno", vTmp );
  1356. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd"));
  1357. model.setValue("/root/send/srchjobflag" ,vJobFlag);
  1358. var sNd = "/root/temp/rcptinfo/hidden/opmi_out";
  1359. model.resetInstanceNode(sNd);
  1360. sNd = sNd + "/";
  1361. openLoadingBar("수납예상내역 계산 중입니다..") ;//처리중 화면을 오픈한다.
  1362. if( submit("TXAHA02101") == true ){
  1363. model.makeValue(opt_payinsubamt.attribute("ref") , model.getValue( sNd + "opmi_payinsubamt"));
  1364. // model.makeValue(opt_payhealcntramt.attribute("ref") , model.getValue( sNd + "opmi_payhealcntramt"));
  1365. model.makeValue(opt_paycmpyamt.attribute("ref") , model.getValue( sNd + "opmi_paycmpyamt"));
  1366. model.makeValue(opt_payownbamt.attribute("ref") , model.getValue( sNd + "opmi_ownbamt"));
  1367. model.makeValue(opt_totamt.attribute("ref") , model.getValue( sNd + "opmi_totamt"));
  1368. model.makeNode("/root/main/info/rsrvacptinfo/item");
  1369. model.refresh();
  1370. ret = 1;
  1371. }
  1372. closeLoadingBar() ;//처리중 화면을 close한다.
  1373. return ret;
  1374. }
  1375. /**
  1376. * 처방내역 및 현황조회
  1377. */
  1378. function fGetOrdInfo(){
  1379. model.removeNodeset(grd_curlst.nodeset);
  1380. model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() ); //건진구분
  1381. var sNd = "/root/main/info/rsrvacptinfo/item/";
  1382. model.setValue("/root/send/srchpid" , model.getValue(sNd + "pid") ); //등록번호
  1383. if( model.getValue("/root/send/srchpid") == "" ){
  1384. messageBox("건진내역이 없습니다.", "E999");
  1385. return ;
  1386. }
  1387. model.setValue("/root/send/srchrsrvdd" , model.getValue(sNd + "rsrvdd") ); //건진예약등록일자
  1388. model.setValue("/root/send/srchrsrvno" , model.getValue(sNd + "rsrvno") ); //건진예약등록번호
  1389. model.setValue("/root/send/srchorddd" , model.getValue(sNd + "orddd") ); //진료일자
  1390. model.setValue("/root/send/srchcretno" , model.getValue(sNd + "cretno") ); //원무생성번호
  1391. submit("TRAHA00701");
  1392. }
  1393. /**
  1394. **건진자번호로 예약/접수 상세정보
  1395. */
  1396. function fGetDetlInfoHid(){
  1397. model.makeNode("/root/main/info/rsrvacptinfo/item/rsrvdd");
  1398. model.setValue("/root/main/info/rsrvacptinfo/item/rsrvdd", "");
  1399. model.makeNode("/root/main/info/rsrvacptinfo/item/rsrvno");
  1400. model.setValue("/root/main/info/rsrvacptinfo/item/rsrvno", "");
  1401. var sHealExamPid = model.getValue("/root/main/info/patinfo/item/healexampid");
  1402. if( sHealExamPid != "" ){
  1403. var vHealExamDetlFg = model.getValue(cmb_healexamdetlflag.attribute("ref") );
  1404. ahafGetRsrvAcpDetltInfoWithPid(vHealExamDetlFg, sHealExamPid);
  1405. }
  1406. //인사정보조회
  1407. if( ( model.getValue("/root/main/info/patinfo/item/rgstno1") != "" ) &&
  1408. (model.getValue("/root/main/info/patinfo/item/rgstno2") != "" ) ){
  1409. ipt_pid.disabled = true;
  1410. var rrgstno = model.getValue("/root/main/info/patinfo/item/rgstno1") + model.getValue("/root/main/info/patinfo/item/rgstno2") ;
  1411. var retValue = "";
  1412. model.makeNode("/root/send/discpat");
  1413. retValue = fGetPsnWorkInfo(rrgstno);
  1414. if(retValue != "") {
  1415. var retVal = retValue.split('▦');
  1416. model.makeValue("/root/main/info/rsrvacptinfo/item/empid", retVal[0]);
  1417. model.makeValue("/root/main/info/rsrvacptinfo/item/empnm", retVal[1]);
  1418. model.makeValue("/root/main/info/rsrvacptinfo/item/disccd", retVal[2]);
  1419. model.makeValue("/root/main/info/rsrvacptinfo/item/emprelacd", retVal[8]);
  1420. cmb_disccdlst.dispatch("xforms-select");
  1421. }
  1422. }
  1423. }
  1424. function fsetDgFlag(){
  1425. var idx = swt_acptlst.selectedIndex ;
  1426. if(idx == 3){
  1427. model.makeValue("/root/send/dgflag", "2" );
  1428. } else
  1429. if(idx == 2){
  1430. model.makeValue("/root/send/dgflag", "1" );
  1431. } else {
  1432. model.makeValue("/root/send/dgflag", "" );
  1433. }
  1434. }
  1435. /*===================================================================================================================
  1436. @desc : 수진자격 조회 후 세부 내역 조회
  1437. ====================================================================================================================*/
  1438. function fInsuCnts(){
  1439. var vCmpycd = model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd");
  1440. model.makeValue("/root/send/srchcmpyno", vCmpycd);
  1441. model.makeValue("/root/send/srchcond", "D");
  1442. if (submit("TRAHB00502",false)) {
  1443. model.makeValue("/root/main/info/rsrvacptinfo/item/cmpynm", model.getValue("/root/hidden/cmpyinfodetl/item/cmpynm"));
  1444. model.makeValue("/root/main/info/rsrvacptinfo/item/armyhos", model.getValue("/root/hidden/cmpyinfodetl/item/miltrcntrhospcd"));
  1445. addComboItem("cmb_bizoffccd","ZZZZZZ","","above");
  1446. addComboItem("cmb_deptcd","ZZZZZZ","","above");
  1447. }
  1448. var insuflag = model.getValue("/root/main/info/rsrvacptinfo/item/insuflag");
  1449. /*if (insuflag == "2") {
  1450. //ipt_subscrhngnm.disabled = false;
  1451. //ipt_subscrrrgstno1.disabled = false;
  1452. //ipt_subscrrrgstno2.disabled = false;
  1453. } else {
  1454. //ipt_subscrhngnm.disabled = true;
  1455. //ipt_subscrrrgstno1.disabled = true;
  1456. //ipt_subscrrrgstno2.disabled = true;
  1457. }*/
  1458. model.refresh();
  1459. }
  1460. /*===================================================================================================================
  1461. @desc : 사업체 존제 여부를 체크하고 사업체를 등록한다.
  1462. ====================================================================================================================*/
  1463. function fChkExistCmpyInfo() {
  1464. if(fGetCmpyDetlCdList()) {
  1465. var node = instance1.selectSingleNode("/root/temp/cmpyinfo/cmpy/cmpycd");
  1466. if( node == null ) {
  1467. if(messageBox("사업체정보가 존재하지 않습니다. 사업체 정보를","Q002") == "6" ) {
  1468. fSetCmpyInfo();
  1469. }
  1470. }
  1471. }
  1472. }
  1473. /*===================================================================================================================
  1474. @desc : 미등록 이나 사용상태가 미사용 상태인 사업체 정보를 등록 및 업데이트 한다.
  1475. ====================================================================================================================*/
  1476. function fSetCmpyInfo() {
  1477. var insuCorpBrchCd = "";
  1478. var civilAplFlag = "";
  1479. var appYear = "";
  1480. var cmpyCd = model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd");
  1481. var cmpyNm = model.getValue("/root/main/info/rsrvacptinfo/item/cmpynm");
  1482. var insuCorpBrchCd = model.getValue("/root/main/info/rsrvacptinfo/item/insucorpbrchcd");
  1483. var hopeDD = model.getValue("/root/main/info/rsrvacptinfo/item/hopedd");
  1484. if(cmpyCd == "") {
  1485. messageBox("사업장코드가","E014");
  1486. return;
  1487. }
  1488. civilAplFlag = insuCorpBrchCd.substr(4,1);
  1489. if(hopeDD == "") {
  1490. appYear = fGetCurrentYear();
  1491. }else {
  1492. appYear = hopeDD.substr(0 , 4);
  1493. }
  1494. model.makeValue("/root/send/savecmpy/cmpycd" , cmpyCd);
  1495. model.makeValue("/root/send/savecmpy/cmpynm" , cmpyNm);
  1496. model.makeValue("/root/send/savecmpy/insucorpbrchcd" , insuCorpBrchCd);
  1497. model.makeValue("/root/send/savecmpy/civilaplflag" , civilAplFlag);
  1498. model.makeValue("/root/send/savecmpy/appyear" , appYear);
  1499. submit("TXAHA04033");
  1500. }
  1501. /*===================================================================================================================
  1502. @desc : 사업장 정보가 있을 경우 사업장 기준정보를 가져온다.
  1503. ====================================================================================================================*/
  1504. function setGnrlCmpyInfo() {
  1505. if(fGetCmpyDetlCdList()) {
  1506. var node = instance1.selectNodes("/root/temp/cmpyinfo/cmpy");
  1507. model.makeValue("/root/main/info/rsrvacptinfo/item/cmpynm", model.getValue("/root/temp/cmpyinfo/cmpy/cmpynm"));
  1508. opt_cmpynm.refresh();
  1509. var bizNode = null;
  1510. if( node.length > 0 ) {
  1511. bizNode = instance1.selectNodes("/root/temp/cmpyinfo/biz");
  1512. model.removeNodeset("/root/hidden/cmpyinfodetl/bizlst");
  1513. if(bizNode.length > 0 ) {
  1514. setCSVToNode( "/root/hidden/cmpyinfodetl" , getNodeListCSV(bizNode) ,"bizlst");
  1515. cmb_bizoffccd.dispatch("xforms-select");
  1516. }else {
  1517. addComboItem("cmb_bizoffccd","ZZZZZZ","","above");
  1518. model.removeNodeset("/root/hidden/cmpyinfodetl/deptlst");
  1519. addComboItem("cmb_deptcd","ZZZZZZ","","above");
  1520. }
  1521. cmb_bizoffccd.refresh();
  1522. cmb_deptcd.refresh();
  1523. }
  1524. }
  1525. }
  1526. /*===================================================================================================================
  1527. @desc : 검사의 금액을 계산
  1528. ====================================================================================================================*/
  1529. function fSetCalcExamAmt() {
  1530. var totalDcAmt = 0;
  1531. var totalOwnbAmt = 0;
  1532. var payinsubamt = 0;
  1533. var payownbamt = 0;
  1534. var paycmpybamt = 0;
  1535. var payhealcntrbamt = 0;
  1536. var paydcamt = 0;
  1537. var totamt = 0;
  1538. var discCd = model.getValue("/root/main/info/rsrvacptinfo/item/disccd"); // 할인코드
  1539. var dcAmt = model.getXPathValue("/root/init/baseinfo/pamcdlst/disccdlst[cd = '" + discCd + "']/dcamt"); // 할인율
  1540. var dcAddAmt = model.getXPathValue("/root/init/baseinfo/pamcdlst/disccdlst[cd = '" + discCd + "']/adddcamt"); // 추가검사할인율
  1541. for(var i = 1; i <= parseInt(model.getXPathValue("count(/root/send/selpkgexam)")); i++) {
  1542. var sel = model.getXPathValue("/root/send/selpkgexam[" +i+ "]/sel");
  1543. if(model.getValue("/root/send/selpkgexam[" +i+ "]/uncocd") == "") {
  1544. setAmt(i);
  1545. }
  1546. if (model.getValue("/root/send/selpkgexam[" +i+ "]/payinsubamt").isNumber() != false && sel == "Y") {
  1547. payinsubamt = payinsubamt + eval(model.getValue("/root/send/selpkgexam[" +i+ "]/payinsubamt"));
  1548. }
  1549. if (model.getValue("/root/send/selpkgexam[" +i+ "]/payownbamt").isNumber() != false && sel == "Y") {
  1550. payownbamt = payownbamt + eval(model.getValue("/root/send/selpkgexam[" +i+ "]/payownbamt"));
  1551. }
  1552. if (model.getValue("/root/send/selpkgexam[" +i+ "]/paycmpybamt").isNumber() != false && sel == "Y") {
  1553. paycmpybamt = paycmpybamt + eval(model.getValue("/root/send/selpkgexam[" +i+ "]/paycmpybamt"));
  1554. }
  1555. if (model.getValue("/root/send/selpkgexam[" +i+ "]/payhealcntrbamt").isNumber() != false && sel == "Y") {
  1556. payhealcntrbamt = payhealcntrbamt + eval(model.getValue("/root/send/selpkgexam[" +i+ "]/payhealcntrbamt"));
  1557. }
  1558. }
  1559. model.makeValue(opt_payinsubamt.attribute("ref") , payinsubamt);
  1560. model.makeValue(opt_payownbamt.attribute("ref") , payownbamt);
  1561. model.makeValue(opt_paycmpyamt.attribute("ref") , paycmpybamt);
  1562. model.makeValue(opt_payhealcntramt.attribute("ref") , payhealcntrbamt);
  1563. model.makeValue(opt_totamt.attribute("ref") , payinsubamt + payownbamt + paycmpybamt + payhealcntrbamt);
  1564. // 할인율 계산
  1565. for(var i = 1; i <= parseInt(model.getXPathValue("count(/root/send/selpkgexam)")); i++) {
  1566. if(discCd != "-" && discCd != "") {
  1567. var sel = model.getValue("/root/send/selpkgexam[" +i+ "]/sel");
  1568. var testdiscyn = model.getValue("/root/send/selpkgexam[" +i+ "]/testdiscyn");
  1569. var pkgflag = model.getValue("/root/send/selpkgexam[" +i+ "]/pkgflag");
  1570. var paydcbamt = 0 ;
  1571. var ownbAmt = eval(model.getValue("/root/send/selpkgexam[" + i + "]/payownbamt"));
  1572. if(pkgflag == "P") {
  1573. if(testdiscyn == "Y" || (testdiscyn == "N" && dcAmt == 0)) {
  1574. // 그리드의 코드 별 할인금액
  1575. paydcbamt = (eval(model.getValue("/root/send/selpkgexam[" + i + "]/payownbamt")) * dcAmt * 0.01);
  1576. ownbAmt = ownbAmt - (eval(model.getValue("/root/send/selpkgexam[" + i + "]/payownbamt"))* dcAmt * 0.01);
  1577. }
  1578. }else {
  1579. if(testdiscyn == "Y" || (testdiscyn == "N" && dcAddAmt == 0)) {
  1580. // 그리드의 코드 별 할인금액
  1581. paydcbamt = (eval(model.getValue("/root/send/selpkgexam[" + i + "]/payownbamt")) * dcAddAmt * 0.01);
  1582. ownbAmt = ownbAmt - (eval(model.getValue("/root/send/selpkgexam[" + i + "]/payownbamt")) * dcAddAmt * 0.01);
  1583. }
  1584. }
  1585. // 그리드의 코드 별 계산 금액
  1586. model.makeValue("/root/send/selpkgexam[" + i + "]/payownbamt", ownbAmt);
  1587. model.makeValue("/root/send/selpkgexam[" + i + "]/paydcbamt", paydcbamt);
  1588. // 전체 할인금액,개인 부담금
  1589. if(sel == "Y") {
  1590. totalDcAmt += paydcbamt;
  1591. totalOwnbAmt += ownbAmt;
  1592. }
  1593. }
  1594. }
  1595. if(discCd != "-" && discCd != "") {
  1596. model.makeValue(opt_payownbamt.attribute("ref") , totalOwnbAmt);
  1597. model.makeValue(opt_paydcamt.attribute("ref") , totalDcAmt);
  1598. }
  1599. }
  1600. /*===================================================================================================================
  1601. @desc : 할인계정, 검사선택에 따른 금액을 계산
  1602. ====================================================================================================================*/
  1603. function fSetReCalcAmt(vDiscYN) {
  1604. if(vDiscYN == null || vDiscYN == "") vDiscYN = "N";
  1605. var payinsubamt = 0.0;
  1606. var payownbamt = 0.0;
  1607. var paycmpybamt = 0.0;
  1608. var payhealcntrbamt = 0.0;
  1609. var paydcbamt = 0.0;
  1610. var discAmt = 0.0;
  1611. var ownbAmt = 0.0;
  1612. var calcDcAmt = 0.0;
  1613. var totPayinsubamt = 0.0;
  1614. var totPayownbamt = 0.0;
  1615. var totPaycmpybamt = 0.0;
  1616. var totPayhealcntrbamt = 0.0;
  1617. var totPaydcbamt = 0.0;
  1618. var totPayamt = 0.0;
  1619. var pkgflag = '';
  1620. var uncocd = '';
  1621. var discCd = model.getValue("/root/main/info/rsrvacptinfo/item/disccd"); // 할인코드
  1622. var dcAmt = model.getXPathValue("/root/init/baseinfo/pamcdlst/disccdlst[cd = '" + discCd + "']/dcamt"); // 패키지 할인율
  1623. var adddcAmt = model.getXPathValue("/root/init/baseinfo/pamcdlst/disccdlst[cd = '" + discCd + "']/adddcamt"); // 추가검사 할인율
  1624. // 금액 계산
  1625. for(var i = 1; i <= parseInt(model.getXPathValue("count(/root/send/selpkgexam)")); i++) {
  1626. var sel = model.getXPathValue("/root/send/selpkgexam[" +i+ "]/sel");
  1627. var testdiscyn = model.getXPathValue("/root/send/selpkgexam[" +i+ "]/testdiscyn");
  1628. pkgflag = model.getValue("/root/send/selpkgexam[" + i + "]/pkgflag");
  1629. uncocd = model.getValue("/root/send/selpkgexam[" + i + "]/uncocd");
  1630. payinsubamt = parseFloat(model.getValue("/root/send/selpkgexam[" + i + "]/payinsubamt"));
  1631. payownbamt = parseFloat(model.getValue("/root/send/selpkgexam[" + i + "]/payownbamt"));
  1632. paycmpybamt = parseFloat(model.getValue("/root/send/selpkgexam[" + i + "]/paycmpybamt"));
  1633. payhealcntrbamt = parseFloat(model.getValue("/root/send/selpkgexam[" + i + "]/payhealcntrbamt"));
  1634. paydcbamt = parseFloat(model.getValue("/root/send/selpkgexam[" + i + "]/paydcbamt"));
  1635. calcDcAmt = payownbamt + paydcbamt;
  1636. if(discCd != "-" && discCd != "" && pkgflag=='P') {
  1637. if(testdiscyn == "Y" || (testdiscyn == "N" && dcAmt == 0 )) {
  1638. // 그리드의 코드 별 할인금액
  1639. discAmt = calcDcAmt * dcAmt * 0.01;
  1640. ownbAmt = calcDcAmt - discAmt;
  1641. // 그리드의 코드 별 계산 금액
  1642. model.makeValue("/root/send/selpkgexam[" + i + "]/payownbamt", ownbAmt);
  1643. model.makeValue("/root/send/selpkgexam[" + i + "]/paydcbamt", discAmt);
  1644. }
  1645. }else if(discCd != "-" && discCd != "" && (pkgflag=='A' || pkgflag=='S' )) {
  1646. if(testdiscyn == "Y" || (testdiscyn == "N" && adddcAmt == 0 )) {
  1647. // 그리드의 코드 별 할인금액
  1648. discAmt = calcDcAmt * adddcAmt * 0.01;
  1649. ownbAmt = calcDcAmt - discAmt;
  1650. // 그리드의 코드 별 계산 금액
  1651. model.makeValue("/root/send/selpkgexam[" + i + "]/payownbamt", ownbAmt);
  1652. model.makeValue("/root/send/selpkgexam[" + i + "]/paydcbamt", discAmt);
  1653. }
  1654. } else {
  1655. if(testdiscyn == "Y" || (testdiscyn == "N" && adddcAmt == 0 )) {
  1656. // 그리드의 코드 별 할인금액
  1657. discAmt = 0;
  1658. ownbAmt = calcDcAmt;
  1659. // 그리드의 코드 별 계산 금액
  1660. model.makeValue("/root/send/selpkgexam[" + i + "]/payownbamt", ownbAmt);
  1661. model.makeValue("/root/send/selpkgexam[" + i + "]/paydcbamt", discAmt);
  1662. }
  1663. }
  1664. if(sel == "Y") {
  1665. totPayinsubamt += payinsubamt;
  1666. totPayownbamt += parseFloat(model.getValue("/root/send/selpkgexam[" + i + "]/payownbamt"));
  1667. totPaycmpybamt += paycmpybamt;
  1668. totPayhealcntrbamt += payhealcntrbamt;
  1669. totPaydcbamt += parseFloat(model.getValue("/root/send/selpkgexam[" + i + "]/paydcbamt"));
  1670. totPayamt += (payinsubamt + parseFloat(model.getValue("/root/send/selpkgexam[" + i + "]/payownbamt")) + paycmpybamt + payhealcntrbamt + parseFloat(model.getValue("/root/send/selpkgexam[" + i + "]/paydcbamt")));
  1671. }
  1672. }
  1673. model.makeValue(opt_payinsubamt.attribute("ref") , totPayinsubamt);
  1674. model.makeValue(opt_payownbamt.attribute("ref") , totPayownbamt);
  1675. model.makeValue(opt_paycmpyamt.attribute("ref") , totPaycmpybamt);
  1676. model.makeValue(opt_payhealcntramt.attribute("ref") , totPayhealcntrbamt);
  1677. model.makeValue(opt_totamt.attribute("ref") , totPayamt);
  1678. model.makeValue(opt_paydcamt.attribute("ref") , totPaydcbamt);
  1679. }
  1680. /** ==============================================================================================================================================================
  1681. * 결과상담을 등록하는 팝업화면을 띄운다.
  1682. *SPAHA00100_PARAM1 : 건진구분
  1683. *SPAHA00100_PARAM2 : 건진상세구분
  1684. *SPAHA00100_PARAM3 : opener 선택노드 xPath
  1685. *SPAHA00100_PARAM4 : opener 결과노드셋 xPath
  1686. ==================================================================================================================================================================*/
  1687. function fGetRsltRsrvDateTime(vFlag) {
  1688. var statFlag = model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
  1689. var sHealexamFlag = model.getValue("/root/main/info/rsrvacptinfo/item/healexamflag");
  1690. var sOutExamYN = rdo_outexamyn.value;
  1691. var sIdx = cmb_rsltcnstlst.focusIndex;
  1692. var nodeIdx = sIdx + 1;
  1693. var rsltRsrvList = instance1.selectNodes("/root/main/info/rsltcnstinfo/cnstlst/cnst");
  1694. var rsltRsrvSaveYN = "";
  1695. var m = "";
  1696. var vHealExamFg = model.getValue("/root/main/info/rsrvacptinfo/item/healexamflag") == "" ? fGetHealExamFlag() : model.getValue("/root/main/info/rsrvacptinfo/item/healexamflag");
  1697. var vRsrvdd = model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd");
  1698. var vRsrvno = model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno");
  1699. // 공통코드의 비고[ Y인경인 결과상담 시간을 관리 N 경우 시간을 관리 하지 않음]
  1700. var cmt = model.getValue("/root/init/baseinfo/rsltcnstflaglst/S080[" + (cmb_rsltcnstflag.focusIndex + 1) + "]/cmt")
  1701. if( (vHealExamFg == "") || (vRsrvdd == "") || (vRsrvno == "") || (vRsrvno == "0") ) {
  1702. messageBox("대상자를" , "C002");
  1703. return;
  1704. }
  1705. if(vFlag == "d") {
  1706. // 삭제 시 저장 않 되었을 경우 그냥 삭제한다.
  1707. // 저장된 내역일 경우에는 상담완료여부 및 지난간 일자인지 체크한다.
  1708. rsltRsrvSaveYN = rsltRsrvList.item(sIdx).rsltrsrvsaveyn.text;
  1709. m = rsltRsrvList.item(sIdx).m.text;
  1710. if(rsltRsrvSaveYN == "N" && m == "i") {
  1711. model.removenode("/root/main/info/rsltcnstinfo/cnstlst/cnst[" + nodeIdx+ "]");
  1712. cmb_rsltcnstlst.refresh();
  1713. cmb_rsltcnstlst.select(0);
  1714. return;
  1715. }else if(rsltRsrvSaveYN == "Y") {
  1716. var rsltCnstEndYN = rsltRsrvList.item(sIdx).rsltcnstendyn.text;
  1717. var rsltCnstDD = rsltRsrvList.item(sIdx).rsltcnstdd.text;
  1718. var rsltCnstRsrvEndtm = rsltRsrvList.item(sIdx).rsltcnstrsrvendtm.text;
  1719. if(cmt == "Y") {
  1720. if(rsltCnstEndYN == "Y") {
  1721. messageBox("상담완료이" , "I002");
  1722. return;
  1723. }
  1724. }
  1725. model.setValue("/root/main/info/rsltcnstinfo/cnstlst/cnst[" + nodeIdx + "]/m" ,vFlag);
  1726. model.setValue("/root/main/info/rsltcnstinfo/cnstlst/cnst[" + nodeIdx + "]/rsltrsrvsaveyn" ,"N");
  1727. }
  1728. }else if( vFlag == "i") {
  1729. // 한번에 한번씩 예약가능
  1730. if(instance1.selectNodes("/root/main/info/rsltcnstinfo/cnstlst/cnst[m='i' or m='d']" ).length > 0) {
  1731. messageBox("저장 후 상담예약" , "I006" );
  1732. return;
  1733. }
  1734. // 내부검사는 1회로 제한
  1735. if(sOutExamYN == "N") {
  1736. var outExamNodeList = instance1.selectNodes("/root/main/info/rsltcnstinfo/cnstlst/cnst[outexamyn='" + sOutExamYN + "' and m !='-'] " );
  1737. if(outExamNodeList.length > 0) {
  1738. messageBox("내부검사는 1회 등록" , "I006" );
  1739. return;
  1740. }
  1741. if(cmb_rsltcnstflag.value == "") {
  1742. messageBox("결과상담 구분을" , "C002" );
  1743. return;
  1744. }
  1745. }
  1746. if(cmt == "Y" || sOutExamYN == "Y") {
  1747. setParameter ("SPAHA00110_PARAM1", sHealexamFlag == "" ? fGetHealExamFlag() : sHealexamFlag);
  1748. setParameter ("SPAHA00110_PARAM2", model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag"));
  1749. setParameter ("SPAHA00110_PARAM3", "/root/main/info/rsltcnstinfo/choicnst");
  1750. setParameter ("SPAHA00110_PARAM4", "/root/main/info/rsltcnstinfo/cnstlst/cnst");
  1751. modal("SPAHA00110");
  1752. }else if(cmt == "N") {
  1753. var cnt = parseInt(getNodesetCount("/root/main/info/rsltcnstinfo/cnstlst/cnst")) + 1;
  1754. // 기존 인스턴스 순서에 맞추어서 생성해야 함
  1755. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnstseqno" , 0);
  1756. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/outexamyn" , model.getValue("/root/main/info/rsltcnstinfo/choicnst/outexamyn"));
  1757. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnstflag" , model.getValue("/root/main/info/rsltcnstinfo/choicnst/rsltcnstflag"));
  1758. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnstdd" , "");
  1759. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnstrsrvstarttm" , "");
  1760. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnstrsrvendtm" , "");
  1761. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/ownyn" , "");
  1762. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/visitor" , "");
  1763. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnstdr" , "");
  1764. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/visittm" , "");
  1765. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnststarttm" , "");
  1766. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnstendtm" , "");
  1767. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnstendyn" , "N");
  1768. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnsthistcd" , "O");
  1769. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltcnstremcnts" , model.getValue("/root/main/info/rsltcnstinfo/choicnst/rsltcnstremcnts"));
  1770. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/spcffact" , "");
  1771. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltrsrvid" , "----");
  1772. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltrsrvnm" , cmb_rsltcnstflag.label);
  1773. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/rsltrsrvsaveyn" , "N");
  1774. model.makeValue("/root/main/info/rsltcnstinfo/cnstlst/cnst["+ cnt + "]/m" , "i");
  1775. }
  1776. }
  1777. }
  1778. function RgstnoCheck(){
  1779. var rgstno1 = ipt_rgstno1.currentText;
  1780. var rgstno2 = ipt_rgstno2.currentText;
  1781. var rgstno1 = model.getValue("/root/main/info/patinfo/item/rgstno1").getTrim();
  1782. var rgstno2 = model.getValue("/root/main/info/patinfo/item/rgstno2").getTrim();
  1783. if(rgstno1.length != 6 ){
  1784. messageBox("주민번호 앞6자리 형식오류입니다. 올바른 형태로 입력하십시요!","E999","");
  1785. model.setFocus("ipt_rgstno1");
  1786. return false;
  1787. }else if(rgstno2.length != 7){
  1788. messageBox("주민번호 뒤7자리 형식오류입니다. 올바른 형태로 입력하십시요!","E999","");
  1789. model.setFocus("ipt_rgstno2");
  1790. return false;
  1791. }
  1792. return true;
  1793. }
  1794. ]]>
  1795. </script>
  1796. </xhtml:head>
  1797. <xhtml:body guideline="1,1195;2,784;2,757;1,852;1,1187;1,1239;">
  1798. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  1799. <input id="ipt_srchpid" ref="/root/send/srchpid2" class="input_search" style="left:660px; top:8px; width:170px; height:19px; "/>
  1800. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1194px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  1801. <caption id="caption48" class="search_name" style="left:636px; top:12px; width:89px; height:17px; ">환자검색 :</caption>
  1802. <button id="btn_acptlst" class="btn1_letter2" style="left:1122px; top:10px; width:56px; height:22px; ">
  1803. <caption>조회</caption>
  1804. <script type="javascript" ev:event="onclick">
  1805. <![CDATA[
  1806. fGetList();
  1807. ]]>
  1808. </script>
  1809. </button>
  1810. <line id="line29" style="x1:1106px; y1:10px; x2:1106px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  1811. <caption id="caption49" class="search_name" style="left:5px; top:12px; width:86px; height:17px; ">건진일자 :</caption>
  1812. <caption id="caption50" class="search_n_b" style="left:196px; top:11px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1813. <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:92px; top:11px; width:100px; height:19px; "/>
  1814. <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:212px; top:11px; width:100px; height:19px; "/>
  1815. <input id="srch_pid" ref="/root/send/srchpid2" class="input_search" maxlength="10" style="left:725px; top:11px; width:135px; height:19px; "/>
  1816. <button id="button6" class="icon_search" style="left:865px; top:11px; width:16px; height:16px; ">
  1817. <caption/>
  1818. <script type="javascript" ev:event="DOMActivate">
  1819. <![CDATA[
  1820. fSearchPatInfo("SMAHA00600", "pid", srch_pid.currentText , "N", "/root/send" ,ipt_srchpid.attribute("ref"), opt_srchpnm.attribute("ref") );
  1821. ]]>
  1822. </script>
  1823. </button>
  1824. <output id="opt_srchpnm" ref="/root/send/srchpnm2" class="output_fix" style="left:885px; top:11px; width:200px; height:19px; "/>
  1825. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" visibility="visible" appearance="minimal" style="left:420px; top:11px; width:190px; height:19px; ">
  1826. <choices>
  1827. <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0070">
  1828. <label ref="cdnm"/>
  1829. <value ref="cdid"/>
  1830. </itemset>
  1831. </choices>
  1832. <script type="javascript" ev:event="xforms-select">
  1833. <![CDATA[
  1834. // cmb_healexamdetlflag.value = cmb_srchhealexamdetlflag.value;
  1835. ]]>
  1836. </script>
  1837. </select1>
  1838. <choices>
  1839. <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0070">
  1840. <label ref="cdnm"/>
  1841. <value ref="cdid"/>
  1842. </itemset>
  1843. </choices>
  1844. <caption id="caption51" class="search_name" visibility="visible" style="left:331px; top:12px; width:86px; height:17px; ">검진구분 :</caption>
  1845. </group>
  1846. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1847. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:13px; ">
  1848. <![CDATA[예약/접수]]>
  1849. <script type="javascript" ev:event="ondblclick">
  1850. <![CDATA[
  1851. open("SMAHA04700");
  1852. ]]>
  1853. </script>
  1854. </caption>
  1855. </group>
  1856. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  1857. <button id="btn_rsrvcfm" class="btn4_letter2" style="left:840px; top:3px; width:56px; height:22px; ">
  1858. <caption>예약</caption>
  1859. <script type="javascript" ev:event="onclick">
  1860. <![CDATA[
  1861. //주민번호 체크
  1862. if( ! RgstnoCheck() ){
  1863. return false;
  1864. }
  1865. if (model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag")=="")
  1866. {
  1867. messageBox("건진종류를 ", "C002" );
  1868. return;
  1869. }
  1870. if (model.getValue("root/main/info/rsrvacptinfo/item/rsrvtm") == ""){
  1871. messageBox("예약일자를 ", "C002");
  1872. model.setFocus("btn_totrsrvdt");
  1873. fGetRsrvDateTime("T", ipt_rsrvdd , ipt_rsrvtm);
  1874. return false;
  1875. }
  1876. if(model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd")==""){
  1877. messageBox("패키지를 ", "C002");
  1878. return;
  1879. }
  1880. model.makeValue("/root/main/info/rsrvacptinfo/item/brthdd", model.getValue("/root/main/info/patinfo/item/brthdd"));
  1881. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamflag","G");
  1882. finsuCheck();
  1883. model.makeValue("/root/main/info/rsrvacptinfo/item/dgflag" , "1");
  1884. if(model.getValue("/root/main/info/patinfo/item/pid") == ""){
  1885. //alert("20080830");
  1886. // fSavePtbs();
  1887. }
  1888. //copyNodesetType("/root/main/info/rsrvacptinfo/addlst","/root/send/selpkgexam", "replace");
  1889. //model.refresh();
  1890. fSaveRsrvAcptPro("C","1");
  1891. ]]>
  1892. </script>
  1893. </button>
  1894. <button id="btn_clear" class="btn4_letter3" style="left:765px; top:3px; width:68px; height:22px; ">
  1895. <caption>초기화</caption>
  1896. <script type="javascript" ev:event="onclick">
  1897. <![CDATA[
  1898. var vhf = model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag");
  1899. fInitInfo();
  1900. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag",vhf);
  1901. fSetBtnStat();
  1902. fInsuCnts();
  1903. model.makeValue("/root/send/srchpkgflag", "");
  1904. model.makeValue("/root/send/srchhealexamflag", "G");
  1905. model.makeValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag"));
  1906. model.makeValue("/root/send/srchetccd" , model.getValue("/root/main/info/rsrvacptinfo/item/etccd"));
  1907. submit("TRAHA00431");
  1908. model.setFocus("ipt_rgstno1",true);
  1909. ]]>
  1910. </script>
  1911. </button>
  1912. <button id="btn_rsrvcncl" class="btn4_letter4" style="left:900px; top:3px; width:80px; height:22px; ">
  1913. <caption>예약취소</caption>
  1914. <script type="javascript" ev:event="onclick">
  1915. <![CDATA[
  1916. model.makeValue("/root/main/info/rsrvacptinfo/item/brthdd", model.getValue("/root/main/info/patinfo/item/brthdd"));
  1917. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamflag","G");
  1918. finsuCheck();
  1919. fSaveRsrvAcptPro("D","1");
  1920. ]]>
  1921. </script>
  1922. </button>
  1923. <button id="btn_acpt" class="btn4_letter2" style="left:985px; top:3px; width:56px; height:22px; ">
  1924. <caption>접수</caption>
  1925. <script type="javascript" ev:event="onclick">
  1926. <![CDATA[
  1927. //주민번호 체크
  1928. if( ! RgstnoCheck() ){
  1929. return false;
  1930. }
  1931. if (model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag")=="")
  1932. {
  1933. messageBox("건진종류를 ", "C002" );
  1934. return;
  1935. }
  1936. model.makeValue("/root/main/info/rsrvacptinfo/item/brthdd", model.getValue("/root/main/info/patinfo/item/brthdd"));
  1937. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamflag","G");
  1938. finsuCheck();
  1939. var cur_date = getCurrentDate();
  1940. model.makeValue("/root/main/info/rsrvacptinfo/item/hopedd",cur_date);
  1941. // model.makeValue("/root/main/info/rsrvacptinfo/item/orddd",cur_date);
  1942. // model.makeValue("/root/main/info/rsrvacptinfo/item/dgflag" , "1");
  1943. if(model.getValue("/root/main/info/patinfo/item/pid") == ""){
  1944. //alert("20080830");
  1945. // fSavePtbs();
  1946. }
  1947. var chknum = 0;
  1948. for (var i=1 ; i <grd_addlst.rows ; i++ ) {
  1949. if (grd_addlst.valueMatrix(i,grd_addlst.colRef('sel')) == 'Y') {
  1950. chknum++;
  1951. }
  1952. grd_addlst.valueMatrix(i ,grd_addlst.colRef("payinsubamt")) = Math.floor(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("payinsubamt"))));
  1953. grd_addlst.valueMatrix(i ,grd_addlst.colRef("payownbamt")) = Math.floor(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("payownbamt"))));
  1954. grd_addlst.valueMatrix(i ,grd_addlst.colRef("payhealcntrbamt")) = Math.floor(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("payhealcntrbamt"))));
  1955. grd_addlst.valueMatrix(i ,grd_addlst.colRef("paycmpybamt")) = Math.floor(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("paycmpybamt"))));
  1956. grd_addlst.valueMatrix(i ,grd_addlst.colRef("paydcbamt")) = Math.floor(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("paydcbamt"))));
  1957. }
  1958. if (chknum>0 ){
  1959. fSaveRsrvAcptPro("E","1");
  1960. } else {
  1961. messageBox("검사내역을 ", "C002" );
  1962. return false;
  1963. }
  1964. //model.resetInstanceNode("/root/send/selpkgexam");
  1965. ]]>
  1966. </script>
  1967. </button>
  1968. <button id="btn_acptcncl" class="btn4_letter4" style="left:1046px; top:4px; width:80px; height:22px; ">
  1969. <caption>접수취소</caption>
  1970. <script type="javascript" ev:event="onclick">
  1971. <![CDATA[
  1972. model.makeValue("/root/main/info/rsrvacptinfo/item/brthdd", model.getValue("/root/main/info/patinfo/item/brthdd"));
  1973. model.makeValue("/root/main/info/rsrvacptinfo/item/healexamflag", "G");
  1974. model.makeValue("/root/main/info/rsrvacptinfo/item/ownbamt", model.getValue("//root/main/info/rcptinfo/ownbamt"));
  1975. finsuCheck();
  1976. for (var i=1 ; i <grd_addlst.rows ; i++ ) {
  1977. grd_addlst.valueMatrix(i ,grd_addlst.colRef("payinsubamt")) = Math.round(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("payinsubamt"))));
  1978. grd_addlst.valueMatrix(i ,grd_addlst.colRef("payownbamt")) = Math.round(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("payownbamt"))));
  1979. grd_addlst.valueMatrix(i ,grd_addlst.colRef("payhealcntrbamt")) = Math.round(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("payhealcntrbamt"))));
  1980. grd_addlst.valueMatrix(i ,grd_addlst.colRef("paycmpybamt")) = Math.round(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("paycmpybamt"))));
  1981. grd_addlst.valueMatrix(i ,grd_addlst.colRef("paydcbamt")) = Math.round(parseFloat(grd_addlst.valueMatrix(i ,grd_addlst.colRef("paydcbamt"))));
  1982. }
  1983. fSaveRsrvAcptPro("F","1");
  1984. fSetReCalcAmt("Y");
  1985. ]]>
  1986. </script>
  1987. </button>
  1988. <button id="btn_prntseq" class="btn6_letter5" style="left:186px; top:3px; width:92px; height:22px; ">
  1989. <caption>순서표출력</caption>
  1990. <script type="javascript" ev:event="DOMActivate">
  1991. <![CDATA[
  1992. model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() ); //건진구분
  1993. model.setValue("/root/send/srchrsrvdd" , model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd") ); //건진예약등록일자
  1994. model.setValue("/root/send/srchrsrvno" , model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno") ); //건진예약등록번호
  1995. if( submit("TRAHA04034") == false ) return ;
  1996. model.makeNode("/root/main/seqprntdata/pid");
  1997. model.makeNode("/root/main/seqprntdata/hngnm");
  1998. model.makeNode("/root/main/seqprntdata/sexage");
  1999. model.makeNode("/root/main/seqprntdata/pkgnm");
  2000. model.makeNode("/root/main/seqprntdata/brtdd");
  2001. model.setValue("/root/main/seqprntdata/pid" ,model.getValue(ipt_pid.attribute("ref") ) ); //등록번호
  2002. model.setValue("/root/main/seqprntdata/hngnm" ,model.getValue(ipt_pnm.attribute("ref")) ); //성명
  2003. model.setValue("/root/main/seqprntdata/sexage" ,model.getValue(opt_sex.attribute("ref")) + "/" + model.getValue(opt_age.attribute("ref")) ); //성별,나이
  2004. model.setValue("/root/main/seqprntdata/pkgnm" ,model.getValue("/root/main/info/rsrvacptinfo/item/pkgnm") ); //패키지명
  2005. model.setValue("/root/main/seqprntdata/brtdd" ,model.getValue(ipt_brthdd.attribute("ref")) ); //생년월일
  2006. model.makeValue("/root/main/seqprntdata/cmpynm" ,model.getValue("/root/main/info/rsrvacptinfo/item/cmpynm")); //회사명
  2007. var nodeList= instance1.selectNodes("/root/main/seqprntdata/item");
  2008. if((nodeList != null) && (nodeList.length >0 )){
  2009. // exeReportPreview("RPAHA00402", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  2010. exeReportPreview("RPAHA00406", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  2011. }
  2012. ]]>
  2013. </script>
  2014. </button>
  2015. <button id="btn_rcpt" class="btn4_letter2" style="left:1129px; top:4px; width:56px; height:22px; ">
  2016. <caption>수납</caption>
  2017. <script type="javascript" ev:event="DOMActivate">
  2018. <![CDATA[
  2019. //alert(model.getValue("/root/main/info/rsrvacptinfo/item/statflag") );
  2020. var rs= model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
  2021. if((rs=="E") ||(rs=="F")||(rs=="G")||(rs=="H")||(rs=="I")){
  2022. ahafOpenRcptGnrl( fGetHealExamFlag()
  2023. , model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd")
  2024. , model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno")
  2025. , model.getValue("/root/main/info/rsrvacptinfo/item/pid")
  2026. , model.getValue("/root/main/info/rsrvacptinfo/item/rcptstat")
  2027. , model.getValue("/root/main/info/rsrvacptinfo/item/orddd" ) );
  2028. } else {
  2029. setParameter("SMAHA02400_PARAM_PID",model.getValue("/root/main/info/patinfo/item/pid"));
  2030. // setParameter("SMAHA02400_PARAM_PREAMT2",model.getValue("/root/main/info/rcptinfo/preamt2"));
  2031. setParameter("SMAHA02400_PARAM_PREAMT2",model.getValue("/root/main/info/rcptinfo/realamt"));
  2032. modal("SMAHA02400");
  2033. }
  2034. ]]>
  2035. </script>
  2036. </button>
  2037. <button id="button2" class="btn3_letter6" style="left:0px; top:3px; width:104px; height:22px; ">
  2038. <caption>외래검사예약</caption>
  2039. <script type="javascript" ev:event="onclick">
  2040. <![CDATA[
  2041. aezfPopUpRsrvSample("SMAEA02000", "", "/root/main/info/rsrvacptinfo/item");
  2042. ]]>
  2043. </script>
  2044. </button>
  2045. <button id="btn_cmpyacpt" class="btn3_letter6" visibility="hidden" style="left:420px; top:5px; width:104px; height:22px; ">
  2046. <caption>단체예약/접수</caption>
  2047. <script type="javascript" ev:event="onclick">
  2048. <![CDATA[
  2049. open("SMAHA00300");
  2050. ]]>
  2051. </script>
  2052. </button>
  2053. <button id="btn_rsrvacptprest" class="btn3_letter6" visibility="hidden" style="left:530px; top:5px; width:104px; height:22px; ">
  2054. <caption>예약/접수현황</caption>
  2055. <script type="javascript" ev:event="DOMActivate">
  2056. <![CDATA[
  2057. ahafOpenRsrvAcptList("SMAHA00100"
  2058. , fGetHealExamFlag() , model.getValue(cmb_healexamdetlflag.attribute("ref") ) , "N" , "C" , ""
  2059. , "" , ipt_pnm.currentText, ipt_pid.currentText , ipt_rgstno1.currentText, ipt_rgstno2.currentText, "", "pnm", "/root/main/info/rsrvacptinfo/item");
  2060. if( model.getValue("/root/temp/SMAHA00400/okflag") == "ok" ){
  2061. ahafGetRsrvAcpDetltInfo( model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd"), model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno") );
  2062. }
  2063. ]]>
  2064. </script>
  2065. </button>
  2066. <button id="button5" class="btn3_letter4" visibility="visible" style="left:105px; top:3px; width:104px; height:22px; ">
  2067. <caption>건진이력</caption>
  2068. <script type="javascript" ev:event="onclick">
  2069. <![CDATA[
  2070. setParameter ("SPAHA04013_PARAM1" , model.getValue("/root/main/info/rsrvacptinfo/item/pid") );
  2071. setParameter ("SPAHA04013_PARAM2" , model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag").substr(0,1) );
  2072. setParameter ("SPAHA04013_PARAM3" , model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag") );
  2073. window.load("../../../ast/healthexamrsrvacptweb/xrw/SPAHA04013_건진이력.xrw","modeless","","","","");
  2074. ]]>
  2075. </script>
  2076. </button>
  2077. </group>
  2078. <button id="button15" class="btn2_letter4" style="left:986px; top:56px; width:64px; height:19px; ">
  2079. <caption>선택추가</caption>
  2080. <script type="javascript" ev:event="DOMActivate">
  2081. <![CDATA[
  2082. //model.makeNode("/root/send/selpkgexam");
  2083. var exists = true;
  2084. for (var k = 1;k <= grd_pkglst.rows ;k++){
  2085. if (grd_pkglst.valueMatrix(k, grd_pkglst.colRef("sel")) == "Y" && grd_pkglst.isReadOnly(k, grd_pkglst.colRef("sel")) == false) {
  2086. exists = false;
  2087. }
  2088. }
  2089. if(exists) {
  2090. messageBox("선택된 패키지가", "I004");
  2091. return;
  2092. }
  2093. var rowcount = parseInt(model.getXPathValue("count(/root/send/selpkgexam)")) + 1;
  2094. for (i = 1; i <= grd_pkglst.rows ; i++){
  2095. if (model.getValue("/root/main/pkgaddlst/item[" +i+ "]/sel") == "Y" && grd_pkglst.isReadOnly(i, grd_pkglst.colRef("sel")) == false) {
  2096. if (rowcount==0){
  2097. rowcount = 1;
  2098. }
  2099. model.setValue("/root/main/info/rsrvacptinfo/item/pkgcd", model.getValue("/root/main/pkgaddlst/item[" +i+ "]/pkgcd"));
  2100. grd_pkglst.isReadOnly(i, grd_pkglst.colRef("sel")) = true;
  2101. model.makeValue("/root/send/selpkgexam["+rowcount+"]/sel" , "true");
  2102. model.makeValue("/root/send/selpkgexam["+rowcount+"]/pkgcd", model.getValue("/root/main/pkgaddlst/item[" +i+ "]/pkgcd"));
  2103. model.makeValue("/root/send/selpkgexam["+rowcount+"]/pkgnm", model.getValue("/root/main/pkgaddlst/item[" +i+ "]/pkgnm"));
  2104. model.makeValue("/root/send/selpkgexam["+rowcount+"]/testcd", model.getValue("/root/main/pkgaddlst/item[" +i+ "]/pkgcd"));
  2105. model.makeValue("/root/send/selpkgexam["+rowcount+"]/pkgflag", model.getValue("/root/main/pkgaddlst/item[" +i+ "]/pkgflag")); //추가검사
  2106. model.makeValue("/root/send/selpkgexam["+rowcount+"]/testflag", "A");
  2107. model.makeValue("/root/send/selpkgexam["+rowcount+"]/grupflag" , model.getValue("/root/main/pkgaddlst/item[" +i+ "]/grupflag"));
  2108. model.makeValue("/root/send/selpkgexam["+rowcount+"]/m" , "i");
  2109. model.makeValue("/root/main/info/rsrvacptinfo/addlst["+rowcount+"]/m" , "i");
  2110. rowcount = rowcount +1;
  2111. }
  2112. }
  2113. var pkglst = "";
  2114. for(var i = 1; i <= parseInt(model.getXPathValue("count(/root/send/selpkgexam)")) ; i++)
  2115. {
  2116. if(model.getValue("/root/send/selpkgexam[" +i+ "]/pkgflag") == "P")
  2117. {
  2118. pkglst += "'" + model.getValue("/root/send/selpkgexam[" +i+ "]/pkgcd") + "', ";
  2119. }
  2120. }
  2121. pkglst = pkglst.substr(0, pkglst.length - 2);
  2122. model.makeValue("/root/send/srchpkglst", pkglst);
  2123. var healcureflag = model.getValue("/root/main/info/rsrvacptinfo/item/acpt_insuid");
  2124. healcureflag = healcureflag.substr(0, 1);
  2125. if(submit("TRAHA04032")) {
  2126. fSetCalcExamAmt();
  2127. }
  2128. grd_addlst.rebuild();
  2129. model.refresh();
  2130. ]]>
  2131. </script>
  2132. </button>
  2133. <select1 id="combo27" ref="/root/main/info/rsrvacptinfo/item/mamcncrflag" class="combo_default" navindex="30" appearance="minimal" style="left:749px; top:424px; width:103px; height:19px; ">
  2134. <choices>
  2135. <item>
  2136. <label>대상아님</label>
  2137. <value>1</value>
  2138. </item>
  2139. <item>
  2140. <label>10%부담</label>
  2141. <value>2</value>
  2142. </item>
  2143. <item>
  2144. <label>공단부담</label>
  2145. <value>3</value>
  2146. </item>
  2147. <item>
  2148. <label>보건소부담</label>
  2149. <value>4</value>
  2150. </item>
  2151. <item>
  2152. <label>수검완료</label>
  2153. <value>5</value>
  2154. </item>
  2155. </choices>
  2156. </select1>
  2157. <caption id="caption81" class="cell_1" style="left:492px; top:370px; width:70px; height:23px; vertical-align:middle; ">1차장소</caption>
  2158. <caption id="caption70" class="cell_1" style="left:676px; top:292px; width:70px; height:23px; vertical-align:middle; ">가입구분</caption>
  2159. <output id="opt_paycmpyamt" ref="/root/main/info/rcptinfo/paycmpyamt" class="output_fix" format="#,###" style="left:939px; top:726px; width:80px; height:19px; text-align:right; "/>
  2160. <button id="button4" class="btn2_letter6" style="left:675px; top:188px; width:86px; height:19px; ">
  2161. <caption>등록번호생성</caption>
  2162. <script type="javascript" ev:event="DOMActivate">
  2163. <![CDATA[
  2164. fSavePtbs();
  2165. ]]>
  2166. </script>
  2167. </button>
  2168. <button id="button16" class="btn2_letter6" style="left:765px; top:188px; width:86px; height:19px; ">
  2169. <caption>수진자격조회</caption>
  2170. <script type="javascript" ev:event="onclick">
  2171. <![CDATA[
  2172. var sRgstNo1 = model.getValue("/root/main/info/patinfo/item/rgstno1" );
  2173. var sRgstNo2 = model.getValue("/root/main/info/patinfo/item/rgstno2" );
  2174. var sHngNm = model.getValue("/root/main/info/patinfo/item/hngnm");
  2175. /* var sOrdDD = model.getValue( ipt_rsrvdd.attribute("ref") );
  2176. if( sOrdDD == "" ) {
  2177. sOrdDD = model.getValue( ipt_orddd.attribute("ref") );
  2178. }
  2179. var vInsuKind = opt_insukind.attribute("ref") ;
  2180. var vInsuID = ipt_insuid.attribute("ref") ;
  2181. var vInsuCd = ipt_insucd.attribute("ref") ;
  2182. var vFromDD = "";
  2183. var vInsuNm = "";
  2184. var vInsuBranchCd = ipt_insucorpbrchcd.attribute("ref") ;
  2185. var vInsuBranchNm = opt_insucorpbrchnm.attribute("ref") ;*/
  2186. ahafGetInsuCnts(sRgstNo1, sRgstNo2, sHngNm);
  2187. fGetCmpyDetlCdList();
  2188. fSetCalcExamAmt();
  2189. var node = instance1.selectSingleNode("/root/temp/cmpyinfo/cmpy/cmpycd");
  2190. if( node != null ) {
  2191. opt_cmpynm.value = model.getValue("/root/temp/cmpyinfo/cmpy/cmpynm");
  2192. }
  2193. //fChkExistCmpyInfo();
  2194. ]]>
  2195. </script>
  2196. </button>
  2197. <caption id="caption93" class="cell_1" visibility="hidden" style="left:311px; top:723px; width:73px; height:23px; vertical-align:middle; ">기록지/문진</caption>
  2198. <select1 id="combo28" ref="/root/main/info/rsrvacptinfo/item/cervcncrflag" class="combo_default" navindex="31" appearance="minimal" style="left:384px; top:450px; width:105px; height:19px; ">
  2199. <choices>
  2200. <item>
  2201. <label>대상아님</label>
  2202. <value>1</value>
  2203. </item>
  2204. <item>
  2205. <label>10%부담</label>
  2206. <value>2</value>
  2207. </item>
  2208. <item>
  2209. <label>공단부담</label>
  2210. <value>3</value>
  2211. </item>
  2212. <item>
  2213. <label>보건소부담</label>
  2214. <value>4</value>
  2215. </item>
  2216. <item>
  2217. <label>수검완료</label>
  2218. <value>5</value>
  2219. </item>
  2220. </choices>
  2221. </select1>
  2222. <select1 id="combo17" ref="/root/main/info/rsrvacptinfo/item/insutrgtflag" class="combo_default" navindex="14" appearance="minimal" style="left:565px; top:294px; width:105px; height:19px; ">
  2223. <choices>
  2224. <itemset nodeset="/root/init/baseinfo/insutrgtflag/A0108">
  2225. <label ref="cdnm"/>
  2226. <value ref="cdid"/>
  2227. </itemset>
  2228. </choices>
  2229. </select1>
  2230. <caption id="caption82" class="cell_1" style="left:676px; top:370px; width:70px; height:23px; vertical-align:middle; ">2차장소</caption>
  2231. <line id="line41" class="line_2" style="x1:311px; y1:290px; x2:851px; y2:290px; "/>
  2232. <caption id="caption60" class="tit_2" style="left:316px; top:539px; width:144px; height:13px; ">검사내역</caption>
  2233. <line id="line30" class="line_3" style="x1:310px; y1:748px; x2:1190px; y2:748px; "/>
  2234. <output id="opt_payownbamt" ref="/root/main/info/rcptinfo/ownbamt" class="output_fix" format="#,###" style="left:1093px; top:700px; width:95px; height:19px; text-align:right; "/>
  2235. <button id="btn_srchcmpy" class="icon_search" style="left:493px; top:267px; width:16px; height:16px; ">
  2236. <caption/>
  2237. <script type="javascript" ev:event="DOMActivate">
  2238. <![CDATA[
  2239. fGetComnCd("SMAHA01500", "09" , "cd", ipt_cmpycd.currentText ,ipt_cmpycd.attribute("ref"), opt_cmpynm.attribute("ref"));
  2240. fGetCmpyDetlCdList();
  2241. var node = instance1.selectNodes("/root/temp/cmpyinfo/cmpy");
  2242. var bizNode = null;
  2243. if( node != null ) {
  2244. ipt_insucorpbrchcd.value = model.getValue("/root/temp/cmpyinfo/cmpy/insucorpbrchcd");
  2245. bizNode = instance1.selectNodes("/root/temp/cmpyinfo/biz");
  2246. model.removeNodeset("/root/hidden/cmpyinfodetl/bizlst");
  2247. if(bizNode.length > 0 ) {
  2248. setCSVToNode( "/root/hidden/cmpyinfodetl" , getNodeListCSV(bizNode) ,"bizlst");
  2249. }else {
  2250. addComboItem("cmb_bizoffccd","ZZZZZZ","","above");
  2251. model.removeNodeset("/root/hidden/cmpyinfodetl/deptlst");
  2252. addComboItem("cmb_deptcd","ZZZZZZ","","above");
  2253. }
  2254. cmb_bizoffccd.refresh();
  2255. cmb_deptcd.refresh();
  2256. }
  2257. ]]>
  2258. </script>
  2259. </button>
  2260. <caption id="caption94" class="tit_2" style="left:865px; top:63px; width:105px; height:13px; ">패키지 검사</caption>
  2261. <line id="line53" class="line_3" style="x1:860px; y1:83px; x2:1190px; y2:83px; "/>
  2262. <select1 id="cmb_disccdlst" ref="/root/main/info/rsrvacptinfo/item/disccd" class="combo_default" navindex="32" appearance="minimal" style="left:566px; top:450px; width:211px; height:19px; ">
  2263. <choices>
  2264. <itemset nodeset="/root/init/baseinfo/pamcdlst/disccdlst">
  2265. <label ref="nm"/>
  2266. <value ref="cd"/>
  2267. </itemset>
  2268. </choices>
  2269. <script type="javascript" ev:event="xforms-value-changed">
  2270. <![CDATA[
  2271. var chkdisccd = model.getValue("/root/main/info/rsrvacptinfo/item/disccd");
  2272. if(chkdisccd !="" ){
  2273. model.makeValue("/root/main/info/rsrvacptinfo/item/dcamt" , model.getValue("/root/init/baseinfo/pamcdlst/disccdlst[cd='"+ chkdisccd+ "']/dcamt"));
  2274. model.makeValue("/root/main/info/rsrvacptinfo/item/adddcamt" , model.getValue("/root/init/baseinfo/pamcdlst/disccdlst[cd='"+ chkdisccd+ "']/adddcamt"));
  2275. }
  2276. dcamt.refresh();
  2277. adddcamt.refresh();
  2278. if (parseInt(model.getXPathValue("count(/root/send/selpkgexam)")) > 0 ) {
  2279. fSetReCalcAmt("Y");
  2280. grd_addlst.rebuild();
  2281. model.refresh();
  2282. }
  2283. ]]>
  2284. </script>
  2285. </select1>
  2286. <select1 id="cmb_insuflag" ref="/root/main/info/rsrvacptinfo/item/insuflag" class="combo_default" navindex="15" appearance="minimal" style="left:749px; top:294px; width:103px; height:19px; ">
  2287. <choices>
  2288. <itemset nodeset="/root/init/baseinfo/insuflag/A0109">
  2289. <label ref="cdnm"/>
  2290. <value ref="cdid"/>
  2291. </itemset>
  2292. </choices>
  2293. <script type="javascript" ev:event="xforms-value-changed">
  2294. <![CDATA[
  2295. // var insuflag = cmb_insuflag.value;
  2296. //
  2297. // if (insuflag == "2") {
  2298. // ipt_subscrhngnm.disabled = false;
  2299. // ipt_subscrrrgstno1.disabled = false;
  2300. // ipt_subscrrrgstno2.disabled = false;
  2301. // } else {
  2302. // ipt_subscrhngnm.disabled = true;
  2303. // ipt_subscrrrgstno1.disabled = true;
  2304. // ipt_subscrrrgstno2.disabled = true;
  2305. // }
  2306. ]]>
  2307. </script>
  2308. </select1>
  2309. <caption id="caption83" class="cell_1" style="left:310px; top:396px; width:70px; height:23px; vertical-align:middle; ">생애여부</caption>
  2310. <caption id="caption72" class="cell_1" style="left:676px; top:240px; width:70px; height:23px; vertical-align:middle; ">휴대전화</caption>
  2311. <caption id="caption61" class="tit_2" style="left:310px; top:115px; width:94px; height:13px; ">건진자 정보</caption>
  2312. <line id="line31" class="line_1" style="x1:310px; y1:78px; x2:850px; y2:78px; "/>
  2313. <output id="opt_totamt" ref="/root/main/info/rcptinfo/totamt" class="output_fix" format="#,###" style="left:1093px; top:726px; width:95px; height:19px; text-align:right; "/>
  2314. <input id="opt_cmpynm" ref="/root/main/info/rsrvacptinfo/item/cmpynm" class="output_fix" disabled="true" navindex="40" imemode="alpha" style="left:511px; top:267px; width:160px; height:19px; "/>
  2315. <caption id="caption95" class="cell_1" style="left:857px; top:698px; width:79px; height:23px; vertical-align:middle; ">공단부담금</caption>
  2316. <line id="line54" class="line_1" style="x1:860px; y1:78px; x2:1190px; y2:78px; "/>
  2317. <select1 id="combo19" ref="/root/main/info/rsrvacptinfo/item/jobkindflag" class="combo_default" navindex="16" appearance="minimal" style="left:384px; top:320px; width:105px; height:19px; ">
  2318. <choices>
  2319. <itemset nodeset="/root/init/baseinfo/jobkindflag/A0112">
  2320. <label ref="cdnm"/>
  2321. <value ref="cdid"/>
  2322. </itemset>
  2323. </choices>
  2324. </select1>
  2325. <datagrid id="grd_addlst" nodeset="/root/send/selpkgexam" caption="선택^검사구분^패키지코드^검사코드^검사명^청구구분^총금액^공단^개인^보건소^단체^할인금^검사일^건진분류^caption1" colsep="^" colwidth="34, 74, 72, 75, 100, 68, 75, 67, 67, 67, 67, 67, 90, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:310px; top:558px; width:876px; height:140px; ">
  2326. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  2327. <col ref="pkgflag" type="combo">
  2328. <choices>
  2329. <itemset nodeset="/root/init/baseinfo/testflag/A0117">
  2330. <label ref="cdnm"/>
  2331. <value ref="cdid"/>
  2332. </itemset>
  2333. </choices>
  2334. </col>
  2335. <col ref="pkgcd"/>
  2336. <col ref="testcd"/>
  2337. <col ref="pkgnm"/>
  2338. <col ref="uncocd" type="combo">
  2339. <choices>
  2340. <itemset nodeset="/root/init/baseinfo/pamcdlst/uncocdlst">
  2341. <label ref="nm"/>
  2342. <value ref="cd"/>
  2343. </itemset>
  2344. </choices>
  2345. </col>
  2346. <col ref="totpayamt" type="input" visibility="hidden" format="#,###" style="text-align:right; "/>
  2347. <col ref="payinsubamt" type="input" format="#,###" style="text-align:right; "/>
  2348. <col ref="payownbamt" type="input" format="#,###" style="text-align:right; "/>
  2349. <col ref="payhealcntrbamt" type="input" format="#,###" style="text-align:right; "/>
  2350. <col ref="paycmpybamt" type="input" format="#,###" style="text-align:right; "/>
  2351. <col ref="paydcbamt" type="input" format="#,###" style="text-align:right; "/>
  2352. <col ref="hopedd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  2353. <col ref="examflag"/>
  2354. <col ref="m" visibility="hidden"/>
  2355. <col ref="testdiscyn" visibility="hidden"/>
  2356. <script type="javascript" ev:event="xforms-value-changed">
  2357. <![CDATA[
  2358. if(grd_addlst.col == grd_addlst.colRef("sel")) {
  2359. fSetReCalcAmt();
  2360. }
  2361. ]]>
  2362. </script>
  2363. </datagrid>
  2364. <caption id="caption84" class="cell_1" style="left:492px; top:396px; width:70px; height:23px; vertical-align:middle; ">간염검사</caption>
  2365. <input id="input30" ref="/root/main/info/patinfo/item/mpphon" navindex="10" imemode="hangul" style="left:749px; top:242px; width:103px; height:19px; "/>
  2366. <caption id="caption73" class="cell_1" style="left:310px; top:240px; width:70px; height:23px; vertical-align:middle; ">E-MAIL</caption>
  2367. <output id="opt_age" ref="/root/main/info/patinfo/item/age" class="output_fix" style="left:426px; top:188px; width:45px; height:19px; "/>
  2368. <caption id="caption62" class="cell_1" style="left:310px; top:161px; width:70px; height:23px; vertical-align:middle; ">성명</caption>
  2369. <line id="line32" class="line_3" style="x1:310px; y1:107px; x2:850px; y2:107px; "/>
  2370. <datagrid id="grd_pkglst" nodeset="/root/main/pkgaddlst/item" caption="선택^업체명^건진코드^명칭^단가(남)^단가(여)^계약기간^계약기간^conseq^pkgflag^uncocd" colsep="^" colwidth="35, 100, 80, 198, 70, 81, 59, 65, 60, 54, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:860px; top:105px; width:326px; height:320px; ">
  2371. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  2372. <col ref="cmpynm" visibility="hidden"/>
  2373. <col ref="pkgcd"/>
  2374. <col ref="pkgnm"/>
  2375. <col ref="mancnfmamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  2376. <col ref="womcnfmamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  2377. <col ref="confromdd" visibility="hidden"/>
  2378. <col ref="contodd" visibility="hidden"/>
  2379. <col ref="conseq" visibility="hidden"/>
  2380. <col ref="pkgflag" visibility="hidden"/>
  2381. <col ref="uncocd" visibility="hidden"/>
  2382. <col ref="uncoflag" visibility="hidden"/>
  2383. <col ref="calcscorcd" visibility="hidden"/>
  2384. <col ref="grupflag" visibility="hidden"/>
  2385. </datagrid>
  2386. <caption id="caption85" class="cell_1" style="left:676px; top:396px; width:70px; height:23px; vertical-align:middle; ">위암</caption>
  2387. <input id="input31" ref="/root/main/info/patinfo/item/telno" class="input_default" navindex="9" imemode="alpha" style="left:565px; top:242px; width:105px; height:19px; "/>
  2388. <caption id="caption74" class="cell_1" style="left:492px; top:240px; width:70px; height:23px; vertical-align:middle; ">전화번호</caption>
  2389. <input id="input20" ref="/root/main/info/patinfo/item/zipcd21" class="output_fix" navindex="10" format="999" style="left:384px; top:215px; width:30px; height:19px; "/>
  2390. <output id="opt_sex" ref="/root/main/info/patinfo/item/sex" class="output_fix" style="left:384px; top:188px; width:40px; height:19px; "/>
  2391. <caption id="caption63" class="cell_1" style="left:310px; top:213px; width:70px; height:24px; vertical-align:middle; ">발송주소</caption>
  2392. <caption id="caption52" class="cell_1" style="left:1020px; top:724px; width:69px; height:23px; vertical-align:middle; ">합계금액</caption>
  2393. <input id="ipt_rgstno2" ref="/root/main/info/patinfo/item/rgstno2" class="input_essential" navindex="2" imemode="hangul" format="9999999" style="left:625px; top:162px; width:75px; height:19px; ">
  2394. <script type="javascript" ev:event="xforms-value-changed">
  2395. <![CDATA[
  2396. if( (getStringLength(model.getValue("/root/main/info/patinfo/item/rgstno2")) > 6) && (getStringLength(model.getValue("/root/main/info/patinfo/item/rgstno1")) > 5) ){
  2397. //주민번호로 환자 검색
  2398. fSetBrthDD();
  2399. fGetPatInfo(1);
  2400. /*
  2401. fGetDetlInfoHid();
  2402. //직원정보관련 setting
  2403. fSetPsnWorkInfo();
  2404. model.makeValue("/root/main/info/rsrvacptinfo/item/choiflag",model.getValue("/root/main/info/patinfo/item/choiflag"));
  2405. */
  2406. model.refresh();
  2407. }
  2408. ]]>
  2409. </script>
  2410. </input>
  2411. <output id="opt_payinsubamt" ref="/root/main/info/rcptinfo/payinsubamt" class="output_fix" format="#,###" style="left:939px; top:700px; width:80px; height:19px; text-align:right; "/>
  2412. <caption id="caption86" class="cell_1" style="left:310px; top:422px; width:70px; height:23px; vertical-align:middle; ">대장암</caption>
  2413. <caption id="caption75" class="cell_1" style="left:676px; top:318px; width:70px; height:23px; vertical-align:middle; ">보건소</caption>
  2414. <input id="input32" ref="/root/main/info/rsrvacptinfo/item/armyhos" disabled="true" navindex="19" imemode="hangul" style="left:384px; top:346px; width:105px; height:19px; "/>
  2415. <select id="chk_healexamdetlflag" ref="/root/main/info/rsrvacptinfo/item/healexamdetlflag" overflow="visible" appearance="full" cols="5" sep="^" style="left:384px; top:85px; width:75px; height:20px; border-style:none; ">
  2416. <choices>
  2417. <item>
  2418. <label>공단건진</label>
  2419. <value>G01</value>
  2420. </item>
  2421. </choices>
  2422. </select>
  2423. <input id="input21" ref="/root/main/info/patinfo/item/zipcd22" class="output_fix" navindex="11" format="999" style="left:426px; top:215px; width:30px; height:19px; ">
  2424. <script type="javascript" ev:event="xforms-value-changed">
  2425. <![CDATA[
  2426. var term = model.getValue("/root/main/info/patinfo/item/zipcd21")+model.getValue("/root/main/info/patinfo/item/zipcd22");
  2427. if (term.length == 6) {
  2428. model.makeValue("/root/main/search/condition", "zipcode");
  2429. model.makeValue("/root/main/search/term", term);
  2430. model.makeValue("/root/send/searchcondition", "zipcode");
  2431. model.makeValue("/root/send/searchterm", "%"+term+"%");
  2432. model.makeValue("/root/send/searchterm", "%"+term+"%");
  2433. submit("TRZBP00102");
  2434. var address = model.getValue("/root/main/zipcodelist/zipcode/prunningaddress");
  2435. var address_detail_origin = model.getValue("/root/main/zipcodelist/zipcode/address");
  2436. var address_detail = address_detail_origin.replace(address, "").getTrim();
  2437. model.setValue("/root/main/info/patinfo/item/zipcdseq2",model.getValue("/root/main/zipcodelist/zipcode/seqno"));
  2438. model.setValue("/root/main/info/patinfo/item/addr2",address);
  2439. model.setValue("/root/main/info/patinfo/item/detladdr2",address_detail);
  2440. input22.refresh();
  2441. input23.refresh();
  2442. }
  2443. ]]>
  2444. </script>
  2445. </input>
  2446. <caption id="caption64" class="search_n_b" style="left:415px; top:215px; width:12px; height:19px; font-weight:bolder; ">-</caption>
  2447. <line id="line34" class="line_1" style="x1:311px; y1:554px; x2:1186px; y2:554px; "/>
  2448. <caption id="caption53" class="cell_1" style="left:857px; top:724px; width:79px; height:23px; vertical-align:middle; ">사업체부담액</caption>
  2449. <caption id="caption87" class="cell_1" style="left:676px; top:422px; width:70px; height:23px; vertical-align:middle; ">유방암</caption>
  2450. <caption id="caption76" class="cell_1" style="left:310px; top:344px; width:70px; height:23px; vertical-align:middle; ">군 병원</caption>
  2451. <input id="input33" ref="/root/main/info/rsrvacptinfo/item/healcntrcd" navindex="18" imemode="hangul" style="left:749px; top:320px; width:103px; height:19px; "/>
  2452. <caption id="caption65" class="cell_1" style="left:310px; top:292px; width:70px; height:23px; vertical-align:middle; ">증번호</caption>
  2453. <input id="input22" ref="/root/main/info/patinfo/item/addr2" class="output_fix" navindex="39" style="left:477px; top:215px; width:155px; height:19px; "/>
  2454. <line id="line35" class="line_1" style="x1:310px; y1:155px; x2:850px; y2:155px; "/>
  2455. <caption id="caption54" class="cell_1" style="left:1020px; top:698px; width:69px; height:23px; vertical-align:middle; ">개인부담액</caption>
  2456. <caption id="caption88" class="cell_1" style="left:310px; top:448px; width:70px; height:23px; vertical-align:middle; ">자궁경부</caption>
  2457. <caption id="caption77" class="cell_1" style="left:492px; top:318px; width:70px; height:23px; vertical-align:middle; ">소속지사</caption>
  2458. <input id="ipt_insucorpbrchcd" ref="/root/main/info/rsrvacptinfo/item/insucorpbrchcd" class="input_default" navindex="17" imemode="alpha" style="left:565px; top:320px; width:105px; height:19px; "/>
  2459. <caption id="caption66" class="cell_1" style="left:310px; top:266px; width:70px; height:23px; vertical-align:middle; ">사업장코드</caption>
  2460. <input id="input23" ref="/root/main/info/patinfo/item/detladdr2" class="input_default" navindex="6" imemode="hangul" maxlength="100" style="left:635px; top:215px; width:216px; height:19px; "/>
  2461. <caption id="caption55" class="tit_2" style="left:310px; top:62px; width:144px; height:13px; ">예약/접수정보</caption>
  2462. <line id="line59" class="line_2" style="x1:860px; y1:722px; x2:1190px; y2:722px; "/>
  2463. <caption id="caption89" class="cell_1" style="left:492px; top:422px; width:70px; height:23px; vertical-align:middle; ">간암</caption>
  2464. <input id="input35" ref="/root/main/info/rsrvacptinfo/item/clntempid" navindex="22" imemode="hangul" style="left:384px; top:372px; width:105px; height:19px; "/>
  2465. <caption id="caption78" class="cell_1" style="left:492px; top:344px; width:70px; height:23px; vertical-align:middle; ">부서</caption>
  2466. <caption id="caption67" class="cell_1" style="left:676px; top:266px; width:70px; height:23px; vertical-align:middle; ">영업소</caption>
  2467. <input id="ipt_pnm" ref="/root/main/info/patinfo/item/hngnm" class="input_essential" navindex="3" imemode="hangul" style="left:384px; top:162px; width:85px; height:19px; ">
  2468. <script type="javascript" ev:event="onkeyup">
  2469. <![CDATA[
  2470. inputEnterKey("btn_selpat", "DOMActivate");
  2471. ]]>
  2472. </script>
  2473. </input>
  2474. <select1 id="prtgubun" ref="/root/send/prtgubun" class="combo_default" visibility="hidden" appearance="minimal" style="left:385px; top:725px; width:141px; height:19px; ">
  2475. <choices>
  2476. <item>
  2477. <label>기록지</label>
  2478. <value>1</value>
  2479. </item>
  2480. <item>
  2481. <label>문진표</label>
  2482. <value>2</value>
  2483. </item>
  2484. </choices>
  2485. </select1>
  2486. <line id="line49" class="line_2" style="x1:311px; y1:498px; x2:851px; y2:498px; "/>
  2487. <caption id="caption79" class="cell_1" style="left:676px; top:344px; width:70px; height:23px; vertical-align:middle; ">입사/병과</caption>
  2488. <input id="input36" ref="/root/main/info/rsrvacptinfo/item/entcodd" navindex="21" imemode="hangul" style="left:749px; top:346px; width:103px; height:19px; "/>
  2489. <caption id="caption68" class="cell_1" style="left:310px; top:318px; width:70px; height:23px; vertical-align:middle; ">직종구분</caption>
  2490. <input id="ipt_cmpycd" ref="/root/main/info/rsrvacptinfo/item/cmpycd" class="input_default" navindex="11" imemode="alpha" style="left:384px; top:267px; width:104px; height:19px; ">
  2491. <script type="javascript" ev:event="onkeyup">
  2492. <![CDATA[
  2493. inputEnterKey("btn_srchcmpy", "DOMActivate");
  2494. ]]>
  2495. </script>
  2496. </input>
  2497. <line id="line38" class="line_3" style="x1:0px; y1:748px; x2:305px; y2:748px; "/>
  2498. <caption id="caption57" class="cell_1" style="left:310px; top:83px; width:70px; height:23px; vertical-align:middle; ">검진종류</caption>
  2499. <select1 id="combo20" ref="/root/main/info/rsrvacptinfo/item/plceflag" class="combo_default" navindex="23" appearance="minimal" style="left:565px; top:372px; width:105px; height:19px; ">
  2500. <choices>
  2501. <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
  2502. <label ref="cdnm"/>
  2503. <value ref="cdid"/>
  2504. </itemset>
  2505. </choices>
  2506. </select1>
  2507. <caption id="caption69" class="cell_1" style="left:492px; top:292px; width:70px; height:23px; vertical-align:middle; ">직역구분</caption>
  2508. <caption id="caption58" class="cell_1" style="left:310px; top:187px; width:70px; height:23px; vertical-align:middle; ">성별/나이</caption>
  2509. <select1 id="combo21" class="combo_default" navindex="24" appearance="minimal" style="left:749px; top:372px; width:103px; height:19px; ">
  2510. <choices>
  2511. <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
  2512. <label ref="cdnm"/>
  2513. <value ref="cdid"/>
  2514. </itemset>
  2515. </choices>
  2516. </select1>
  2517. <input id="input38" ref="/root/main/info/rsrvacptinfo/item/remcnts" class="input_essential" navindex="33" imemode="hangul" style="left:384px; top:476px; width:466px; height:19px; "/>
  2518. <caption id="caption59" class="cell_1" style="left:492px; top:161px; width:70px; height:23px; vertical-align:middle; ">주민번호</caption>
  2519. <select1 id="cmb_bizoffccd" ref="/root/main/info/rsrvacptinfo/item/bizoffccd" navindex="12" appearance="minimal" style="left:749px; top:267px; width:103px; height:19px; ">
  2520. <choices>
  2521. <itemset nodeset="/root/hidden/cmpyinfodetl/bizlst">
  2522. <label ref="bizoffcnm"/>
  2523. <value ref="bizoffccd"/>
  2524. </itemset>
  2525. </choices>
  2526. <script type="javascript" ev:event="xforms-select">
  2527. <![CDATA[
  2528. var selBizOffcCd = cmb_bizoffccd.value;
  2529. var deptNode = instance1.selectNodes("/root/temp/cmpyinfo/dept[bizoffccd='" +selBizOffcCd + "']");
  2530. model.removeNodeset("/root/hidden/cmpyinfodetl/deptlst");
  2531. if(deptNode.length > 0) {
  2532. setCSVToNode( "/root/hidden/cmpyinfodetl" , getNodeListCSV(deptNode) ,"deptlst");
  2533. }else {
  2534. addComboItem("cmb_deptcd","ZZZZZZ","","above");
  2535. }
  2536. cmb_deptcd.refresh();
  2537. ]]>
  2538. </script>
  2539. </select1>
  2540. <select1 id="combo22" ref="/root/main/info/rsrvacptinfo/item/oraltestyn" class="combo_default" navindex="25" appearance="minimal" style="left:383px; top:398px; width:105px; height:19px; ">
  2541. <choices>
  2542. <item>
  2543. <label>생애전환기</label>
  2544. <value>Y</value>
  2545. </item>
  2546. <item>
  2547. <label>일반건진</label>
  2548. <value>N</value>
  2549. </item>
  2550. </choices>
  2551. </select1>
  2552. <input id="input28" ref="/root/main/info/rsrvacptinfo/item/acpt_insuid" class="input_essential" navindex="13" visibility="15" imemode="hangul" style="left:384px; top:294px; width:105px; height:19px; "/>
  2553. <select1 id="cmb_deptcd" ref="/root/main/info/rsrvacptinfo/item/deptcd" navindex="20" appearance="minimal" style="left:565px; top:346px; width:103px; height:19px; ">
  2554. <choices>
  2555. <itemset nodeset="/root/hidden/cmpyinfodetl/deptlst">
  2556. <label ref="deptnm"/>
  2557. <value ref="deptcd"/>
  2558. </itemset>
  2559. </choices>
  2560. </select1>
  2561. <select1 id="combo23" ref="/root/main/info/rsrvacptinfo/item/scndhptstrgtyn" class="combo_default" navindex="26" appearance="minimal" style="left:565px; top:398px; width:105px; height:19px; ">
  2562. <choices>
  2563. <item>
  2564. <label>대상</label>
  2565. <value>Y</value>
  2566. </item>
  2567. <item>
  2568. <label>비대상</label>
  2569. <value>N</value>
  2570. </item>
  2571. </choices>
  2572. </select1>
  2573. <input id="ipt_emailid" ref="/root/main/info/patinfo/item/emailid" navindex="7" style="left:384px; top:242px; width:45px; height:19px; "/>
  2574. <input id="ipt_emailtype" ref="/root/main/info/patinfo/item/emailtype" navindex="8" style="left:430px; top:242px; width:60px; height:19px; "/>
  2575. <button id="button11" class="icon_search" navindex="5" style="left:460px; top:215px; width:16px; height:16px; ">
  2576. <caption/>
  2577. <script type="javascript" ev:event="onclick">
  2578. <![CDATA[
  2579. ahafSetAddr(2, "/root/main/info/patinfo/item","combination");
  2580. ]]>
  2581. </script>
  2582. </button>
  2583. <button id="button12" class="btn2_letter2" visibility="hidden" style="left:527px; top:725px; width:42px; height:19px; ">
  2584. <caption>출력</caption>
  2585. <script type="javascript" ev:event="onclick">
  2586. <![CDATA[
  2587. if (prtgubun.value =="1"){
  2588. fPrntChrt();
  2589. }
  2590. ]]>
  2591. </script>
  2592. </button>
  2593. <select1 id="combo24" ref="/root/main/info/rsrvacptinfo/item/stmccncrflag" class="combo_default" navindex="27" appearance="minimal" style="left:749px; top:398px; width:103px; height:19px; ">
  2594. <choices>
  2595. <item>
  2596. <label>대상아님</label>
  2597. <value>1</value>
  2598. </item>
  2599. <item>
  2600. <label>10%부담</label>
  2601. <value>2</value>
  2602. </item>
  2603. <item>
  2604. <label>공단부담</label>
  2605. <value>3</value>
  2606. </item>
  2607. <item>
  2608. <label>보건소부담</label>
  2609. <value>4</value>
  2610. </item>
  2611. <item>
  2612. <label>수검완료</label>
  2613. <value>5</value>
  2614. </item>
  2615. </choices>
  2616. </select1>
  2617. <input id="ipt_rgstno1" ref="/root/main/info/patinfo/item/rgstno1" class="input_essential" navindex="1" imemode="hangul" format="999999" style="left:565px; top:162px; width:51px; height:19px; ">
  2618. <script type="javascript" ev:event="onkeyup">
  2619. <![CDATA[
  2620. ]]>
  2621. </script>
  2622. </input>
  2623. <line id="line60" class="line_2" style="x1:857px; y1:721px; x2:1187px; y2:721px; "/>
  2624. <select1 id="combo25" ref="/root/main/info/rsrvacptinfo/item/largeintescncrflag" class="combo_default" navindex="28" appearance="minimal" style="left:384px; top:424px; width:105px; height:19px; ">
  2625. <choices>
  2626. <item>
  2627. <label>대상아님</label>
  2628. <value>1</value>
  2629. </item>
  2630. <item>
  2631. <label>10%부담</label>
  2632. <value>2</value>
  2633. </item>
  2634. <item>
  2635. <label>공단부담</label>
  2636. <value>3</value>
  2637. </item>
  2638. <item>
  2639. <label>보건소부담</label>
  2640. <value>4</value>
  2641. </item>
  2642. <item>
  2643. <label>수검완료</label>
  2644. <value>5</value>
  2645. </item>
  2646. </choices>
  2647. </select1>
  2648. <caption id="caption90" class="cell_1" style="left:310px; top:474px; width:70px; height:23px; vertical-align:middle; ">전달사항</caption>
  2649. <select1 id="combo26" ref="/root/main/info/rsrvacptinfo/item/livcncrflag" class="combo_default" navindex="29" appearance="minimal" style="left:565px; top:424px; width:105px; height:19px; ">
  2650. <choices>
  2651. <item>
  2652. <label>대상아님</label>
  2653. <value>1</value>
  2654. </item>
  2655. <item>
  2656. <label>10%부담</label>
  2657. <value>2</value>
  2658. </item>
  2659. <item>
  2660. <label>공단부담</label>
  2661. <value>3</value>
  2662. </item>
  2663. <item>
  2664. <label>보건소부담</label>
  2665. <value>4</value>
  2666. </item>
  2667. <item>
  2668. <label>수검완료</label>
  2669. <value>5</value>
  2670. </item>
  2671. </choices>
  2672. </select1>
  2673. <caption id="caption91" class="cell_1" style="left:492px; top:448px; width:70px; height:23px; vertical-align:middle; ">할인계정</caption>
  2674. <caption id="caption80" class="cell_1" style="left:310px; top:370px; width:70px; height:23px; vertical-align:middle; ">사번/군번</caption>
  2675. <input id="ipt_brthdd" ref="/root/main/info/patinfo/item/brthdd" class="input_essential" navindex="38" visibility="hidden" imemode="alpha" style="left:560px; top:49px; width:55px; height:19px; ">
  2676. <script type="javascript" ev:event="xforms-value-changed">
  2677. <![CDATA[
  2678. if( (getStringLength(model.getValue("/root/main/info/patinfo/item/rgstno2")) > 6) && (getStringLength(model.getValue("/root/main/info/patinfo/item/rgstno1")) > 5) ){
  2679. //주민번호로 환자 검색
  2680. fSetBrthDD();
  2681. fGetPatInfo(1);
  2682. /*
  2683. fGetDetlInfoHid();
  2684. //직원정보관련 setting
  2685. fSetPsnWorkInfo();
  2686. model.makeValue("/root/main/info/rsrvacptinfo/item/choiflag",model.getValue("/root/main/info/patinfo/item/choiflag"));
  2687. */
  2688. model.refresh(); ;
  2689. }
  2690. ]]>
  2691. </script>
  2692. </input>
  2693. <input id="ipt_pid1" ref="/root/main/info/patinfo/item/pid" class="input_essential" navindex="37" visibility="hidden" imemode="hangul" style="left:505px; top:49px; width:55px; height:19px; ">
  2694. <script type="javascript" ev:event="xforms-value-changed">
  2695. <![CDATA[
  2696. if( (getStringLength(model.getValue("/root/main/info/patinfo/item/rgstno2")) > 6) && (getStringLength(model.getValue("/root/main/info/patinfo/item/rgstno1")) > 5) ){
  2697. //주민번호로 환자 검색
  2698. fSetBrthDD();
  2699. fGetPatInfo(1);
  2700. /*
  2701. fGetDetlInfoHid();
  2702. //직원정보관련 setting
  2703. fSetPsnWorkInfo();
  2704. model.makeValue("/root/main/info/rsrvacptinfo/item/choiflag",model.getValue("/root/main/info/patinfo/item/choiflag"));
  2705. */
  2706. model.refresh(); ;
  2707. }
  2708. ]]>
  2709. </script>
  2710. </input>
  2711. <button id="button1" class="btn_sw" group="tab" style="left:124px; top:54px; width:60px; height:22px; ">
  2712. <caption>접수</caption>
  2713. <script type="javascript" ev:event="DOMActivate">
  2714. <![CDATA[
  2715. model.toggle("case_acpt");
  2716. model.makeValue("/root/send/dgflag", "1" );
  2717. fGetList();
  2718. ]]>
  2719. </script>
  2720. </button>
  2721. <button id="btn_cncllst" class="btn_sw" visibility="hidden" group="tab" style="left:184px; top:54px; width:70px; height:22px; ">
  2722. <caption>2차검진</caption>
  2723. <script type="javascript" ev:event="DOMActivate">
  2724. <![CDATA[
  2725. model.toggle("case_cncl");
  2726. model.makeValue("/root/send/dgflag", "2" );
  2727. fGetList();
  2728. ]]>
  2729. </script>
  2730. </button>
  2731. <switch id="swt_acptlst" style="left:0px; top:77px; width:300px; height:665px; border-color:#c7a3cf; border-style:solid; ">
  2732. <case id="case_rsrv">
  2733. <datagrid id="grd_rsrvlst" nodeset="/root/main/list/rsrvlst" caption="성명^등록번호^나이^성별^나이/성별^사업체명^구분^예약일시^예약등록일자^최종수정자^최종수정일시^패키지명^rsrvno^engnm^hopedd^rgstno1^rgstno2^pkgcd^brthareacnts" colsep="^" colwidth="52, 56, 30, 30, 66, 65, 55, 90, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:285px; height:645px; ">
  2734. <col explorerbar="sortshow" ref="pnm"/>
  2735. <col explorerbar="sortshow" ref="pid"/>
  2736. <col explorerbar="sortshow" ref="sex"/>
  2737. <col explorerbar="sortshow" ref="age"/>
  2738. <col explorerbar="sortshow" ref="sexage" visibility="hidden"/>
  2739. <col explorerbar="sortshow" ref="cmpynm"/>
  2740. <col explorerbar="sortshow" disabled="true" ref="statflag" type="combo">
  2741. <choices>
  2742. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  2743. <label ref="cdnm"/>
  2744. <value ref="cdid"/>
  2745. </itemset>
  2746. </choices>
  2747. </col>
  2748. <col explorerbar="sortshow" ref="rsrvdttm" format="yyyy-mm-dd hh:nn"/>
  2749. <col explorerbar="sortshow" ref="rsrvdd" format="yyyy-mm-dd"/>
  2750. <col explorerbar="sortshow" ref="lastupdtrid"/>
  2751. <col explorerbar="sortshow" ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  2752. <col explorerbar="sortshow" ref="pkgnm"/>
  2753. <col ref="rsrvno" visibility="hidden"/>
  2754. <col ref="engnm" visibility="hidden"/>
  2755. <col ref="hopedd" visibility="hidden"/>
  2756. <col ref="rgstno1" visibility="hidden"/>
  2757. <col ref="rgstno2" visibility="hidden"/>
  2758. <col ref="pkgcd" visibility="hidden"/>
  2759. <col ref="brthareacnts" visibility="hidden"/>
  2760. <script type="javascript" ev:event="ondblclick">
  2761. <![CDATA[
  2762. ahafGetGnrlRsrvAcptDetl(1);
  2763. setGnrlCmpyInfo();
  2764. fSetReCalcAmt();
  2765. model.refresh();
  2766. ]]>
  2767. </script>
  2768. <script type="javascript" ev:event="oncopy">
  2769. <![CDATA[
  2770. grid_oncopy();
  2771. ]]>
  2772. </script>
  2773. <script type="javascript" ev:event="onaftersort">
  2774. <![CDATA[
  2775. grd_rsrvlst.gridToInstance();
  2776. ]]>
  2777. </script>
  2778. </datagrid>
  2779. </case>
  2780. <case id="case_rsrvent">
  2781. <datagrid id="grd_rsrventlst" nodeset="/root/main/list/rsrvlst" caption="성명^등록번호^나이^성별^나이/성별^사업체명^구분^예약일시^예약등록일자^최종수정자^최종수정일시^패키지명^rsrvno^engnm^hopped^rgstno1^rgstno2^pkgcd^brthareacnts" colsep="^" colwidth="52, 56, 30, 30, 66, 65, 55, 90, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:285px; height:645px; ">
  2782. <col explorerbar="sortshow" ref="pnm"/>
  2783. <col explorerbar="sortshow" ref="pid"/>
  2784. <col explorerbar="sortshow" ref="sex"/>
  2785. <col explorerbar="sortshow" ref="age"/>
  2786. <col explorerbar="sortshow" ref="sexage" visibility="hidden"/>
  2787. <col explorerbar="sortshow" ref="cmpynm"/>
  2788. <col disabled="true" ref="statflag" type="combo">
  2789. <choices>
  2790. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  2791. <label ref="cdnm"/>
  2792. <value ref="cdid"/>
  2793. </itemset>
  2794. </choices>
  2795. </col>
  2796. <col explorerbar="sortshow" ref="rsrvdttm" format="yyyy-mm-dd hh:nn"/>
  2797. <col explorerbar="sortshow" ref="rsrvdd" format="yyyy-mm-dd"/>
  2798. <col explorerbar="sortshow" ref="lastupdtrid"/>
  2799. <col explorerbar="sortshow" ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  2800. <col explorerbar="sortshow" ref="pkgnm"/>
  2801. <col ref="rsrvno" visibility="hidden"/>
  2802. <col ref="engnm" visibility="hidden"/>
  2803. <col ref="hopedd" visibility="hidden"/>
  2804. <col ref="rgstno1" visibility="hidden"/>
  2805. <col ref="rgstno2" visibility="hidden"/>
  2806. <col ref="pkgcd" visibility="hidden"/>
  2807. <col explorerbar="sortshow" ref="brthareacnts"/>
  2808. <script type="javascript" ev:event="ondblclick">
  2809. <![CDATA[
  2810. ahafGetGnrlRsrvAcptDetl(2);
  2811. setGnrlCmpyInfo();
  2812. fSetReCalcAmt();
  2813. model.refresh();
  2814. ]]>
  2815. </script>
  2816. <script type="javascript" ev:event="oncopy">
  2817. <![CDATA[
  2818. grid_oncopy();
  2819. ]]>
  2820. </script>
  2821. </datagrid>
  2822. </case>
  2823. <case id="case_acpt" selected="true" style="left:0px; top:0px; width:298px; height:665px; ">
  2824. <datagrid id="grd_acptlst" nodeset="/root/main/list/acptlst" caption="성명^등록번호^성별^나이^나이/성별^접수구분^수납상태^사업체명^접수일시^최종수정자^최종수정일시^패키지명^rsrvdd^rsrvno^engnm^hopedd^rgstno1^rgstno2^pkgcd^brthareacnts" colsep="^" colwidth="52, 56, 30, 30, 66, 54, 56, 65, 68, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:285px; height:645px; ">
  2825. <col explorerbar="sortshow" ref="pnm"/>
  2826. <col explorerbar="sortshow" ref="pid"/>
  2827. <col explorerbar="sortshow" ref="sex"/>
  2828. <col explorerbar="sortshow" ref="age"/>
  2829. <col explorerbar="sortshow" ref="sexage" visibility="hidden"/>
  2830. <col explorerbar="sortshow" disabled="true" ref="statflag" type="combo">
  2831. <choices>
  2832. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  2833. <label ref="cdnm"/>
  2834. <value ref="cdid"/>
  2835. </itemset>
  2836. </choices>
  2837. </col>
  2838. <col explorerbar="sortshow" ref="rcptstatyn" type="combo">
  2839. <choices>
  2840. <item>
  2841. <label>수납</label>
  2842. <value>Y</value>
  2843. </item>
  2844. <item>
  2845. <label>미수납</label>
  2846. <value>N</value>
  2847. </item>
  2848. </choices>
  2849. </col>
  2850. <col explorerbar="sortshow" ref="cmpynm"/>
  2851. <col explorerbar="sortshow" ref="rsrvdttm" format="yyyy-mm-dd hh:nn"/>
  2852. <col explorerbar="sortshow" ref="lastupdtrid"/>
  2853. <col explorerbar="sortshow" ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  2854. <col explorerbar="sortshow" ref="pkgnm"/>
  2855. <col ref="rsrvdd" visibility="hidden"/>
  2856. <col ref="rsrvno" visibility="hidden"/>
  2857. <col ref="engnm" visibility="hidden"/>
  2858. <col ref="hopedd" visibility="hidden"/>
  2859. <col ref="rgstno1" visibility="hidden"/>
  2860. <col ref="rgstno2" visibility="hidden"/>
  2861. <col ref="pkgcd" visibility="hidden"/>
  2862. <col ref="brthareacnts" visibility="hidden"/>
  2863. <script type="javascript" ev:event="ondblclick">
  2864. <![CDATA[
  2865. datagrid6.removeRow(false);
  2866. model.makeNode("/root/main/info/judgone");
  2867. model.removeNodeset("/root/send/selpkgexam");
  2868. ahafGetGnrlRsrvAcptDetl(3);
  2869. datagrid6.rebuild();
  2870. fInsuCnts();
  2871. setGnrlCmpyInfo();
  2872. fSetReCalcAmt();
  2873. fInitPkgList();
  2874. model.refresh();
  2875. ]]>
  2876. </script>
  2877. <script type="javascript" ev:event="oncopy">
  2878. <![CDATA[
  2879. grid_oncopy();
  2880. ]]>
  2881. </script>
  2882. <script type="javascript" ev:event="onaftersort">
  2883. <![CDATA[
  2884. grd_acptlst.gridToInstance();
  2885. ]]>
  2886. </script>
  2887. </datagrid>
  2888. </case>
  2889. <case id="case_cncl">
  2890. <datagrid id="grd_cncllst" nodeset="/root/main/list/cncllst" caption="성명^등록번호^나이^성별^나이/성별^사업체명^취소시간^구분^최종수정자^최종수정일시^패키지명^rsrvdd^rsrvno^engnm^hopedd^rgstno1^rgstno2^pkgcd^brthareacnts" colsep="^" colwidth="69, 68, 30, 30, 66, 100, 78, 59, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:285px; height:645px; ">
  2891. <col ref="pnm"/>
  2892. <col ref="pid"/>
  2893. <col ref="sex"/>
  2894. <col ref="age"/>
  2895. <col ref="sexage" visibility="hidden"/>
  2896. <col ref="cmpynm"/>
  2897. <col ref="cncldttm" format="yyyy-mm-dd hh:nn"/>
  2898. <col ref="statflag" type="combo">
  2899. <choices>
  2900. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  2901. <label ref="cdnm"/>
  2902. <value ref="cdid"/>
  2903. </itemset>
  2904. </choices>
  2905. </col>
  2906. <col ref="lastupdtrid"/>
  2907. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  2908. <col ref="pkgnm"/>
  2909. <col ref="rsrvdd"/>
  2910. <col ref="rsrvno"/>
  2911. <col ref="engnm"/>
  2912. <col ref="hopedd"/>
  2913. <col ref="rgstno1"/>
  2914. <col ref="rgstno2"/>
  2915. <col ref="pkgcd"/>
  2916. <col ref="brthareacnts"/>
  2917. <script type="javascript" ev:event="ondblclick">
  2918. <![CDATA[
  2919. datagrid6.removeRow(false);
  2920. model.makeNode("/root/main/info/judgone");
  2921. ahafGetGnrlRsrvAcptDetl(4);
  2922. setGnrlCmpyInfo();
  2923. fSetReCalcAmt();
  2924. datagrid6.rebuild();
  2925. model.refresh();
  2926. ]]>
  2927. </script>
  2928. <script type="javascript" ev:event="oncopy">
  2929. <![CDATA[
  2930. grid_oncopy();
  2931. ]]>
  2932. </script>
  2933. </datagrid>
  2934. </case>
  2935. </switch>
  2936. <button id="btn_rsrventlst" class="btn_sw" group="tab" selected="true" style="left:60px; top:54px; width:65px; height:22px; ">
  2937. <caption>예약등록</caption>
  2938. <script type="javascript" ev:event="DOMActivate">
  2939. <![CDATA[
  2940. model.toggle("case_rsrvent");
  2941. fGetList();
  2942. ]]>
  2943. </script>
  2944. </button>
  2945. <button id="btn_rsrvlst" class="btn_sw" group="tab" selected="true" style="left:0px; top:54px; width:60px; height:22px; ">
  2946. <caption>예약</caption>
  2947. <script type="javascript" ev:event="DOMActivate">
  2948. <![CDATA[
  2949. model.toggle("case_rsrv");
  2950. fGetList();
  2951. ]]>
  2952. </script>
  2953. </button>
  2954. <button id="btn_tag" class="btn2_letter6" visibility="hidden" style="left:615px; top:49px; width:86px; height:19px; ">
  2955. <caption>수진자격조회</caption>
  2956. <script type="javascript" ev:event="onclick">
  2957. <![CDATA[
  2958. ]]>
  2959. </script>
  2960. </button>
  2961. <caption id="cap_rsrvtm" class="cell_1" style="left:660px; top:130px; width:61px; height:23px; vertical-align:middle; ">예약시간</caption>
  2962. <input id="ipt_rsrvtm" ref="/root/main/info/rsrvacptinfo/item/rsrvtm" class="input_default" disabled="true" format="hh:nn" style="left:724px; top:132px; width:56px; height:19px; ">
  2963. <script type="javascript" ev:event="onkeyup">
  2964. <![CDATA[
  2965. fMoveFocus("ipt_pnm");
  2966. ]]>
  2967. </script>
  2968. </input>
  2969. <caption id="cap_orddd" class="cell_1" style="left:310px; top:130px; width:70px; height:23px; vertical-align:middle; ">접수일자</caption>
  2970. <caption id="caption2" class="cell_1" style="left:492px; top:130px; width:70px; height:23px; vertical-align:middle; ">예약일자</caption>
  2971. <input id="ipt_orddd" ref="/root/main/info/rsrvacptinfo/item/orddd" class="input_essential" disabled="true" inputtype="date" style="left:384px; top:132px; width:98px; height:19px; ">
  2972. <script type="javascript" ev:event="onkeyup">
  2973. <![CDATA[
  2974. fMoveFocus("ipt_rsrvdd");
  2975. ]]>
  2976. </script>
  2977. </input>
  2978. <input id="ipt_rsrvdd" ref="/root/main/info/rsrvacptinfo/item/hopedd" class="input_essential" disabled="true" inputtype="date" style="left:565px; top:132px; width:93px; height:19px; ">
  2979. <script type="javascript" ev:event="onkeyup">
  2980. <![CDATA[
  2981. fMoveFocus("ipt_rsrvtm");
  2982. ]]>
  2983. </script>
  2984. </input>
  2985. <button id="btn_totrsrvdt" class="btn2_letter4" style="left:785px; top:132px; width:64px; height:19px; ">
  2986. <caption>예약시간</caption>
  2987. <script type="javascript" ev:event="DOMActivate">
  2988. <![CDATA[
  2989. //예약시간선택 버튼 클릭시 성별이없으면 조회 조건이 맞지 않아 예약인원이 정상적으로 나오지 않으므로 주민번호 입력유도
  2990. var chk = model.getValue("/root/main/info/patinfo/item/sex");
  2991. if(chk == ""){
  2992. messageBox("주민번호를 ", "C001");
  2993. return false;
  2994. }else{
  2995. fGetRsrvDateTime("T", ipt_rsrvdd , ipt_rsrvtm);
  2996. }
  2997. ]]>
  2998. </script>
  2999. </button>
  3000. <select1 id="cmb_brthareacnts" visibility="hidden" appearance="minimal" style="left:265px; top:47px; width:100px; height:19px; ">
  3001. <choices>
  3002. <item>
  3003. <label>combo1</label>
  3004. <value>combo1</value>
  3005. </item>
  3006. </choices>
  3007. </select1>
  3008. <button id="btn_savepatinfo" class="btn5_letter6" visibility="visible" style="left:587px; top:188px; width:86px; height:19px; ">
  3009. <caption>인적사항저장</caption>
  3010. <script type="javascript" ev:event="DOMActivate">
  3011. <![CDATA[
  3012. var chkpid = model.getValue("/root/main/info/patinfo/item/pid");
  3013. if(chkpid == ""){ messageBox("등록번호가 없으므로 인적사항을 저장", "E001"); return false;
  3014. }else{
  3015. if( messageBox("건진자 인적사항을 ", "Q002") == 6 ) {
  3016. fSavePatInfo("N");
  3017. }
  3018. }//else end
  3019. ]]>
  3020. </script>
  3021. </button>
  3022. <caption id="caption3" class="cell_1" style="left:705px; top:160px; width:70px; height:23px; vertical-align:middle; ">등록번호</caption>
  3023. <input id="ipt_pid" ref="/root/main/info/patinfo/item/pid" class="input_essential" navindex="4" imemode="hangul" style="left:780px; top:162px; width:71px; height:19px; ">
  3024. <script type="javascript" ev:event="onkeyup">
  3025. <![CDATA[
  3026. if( event.keyCode == 13) {
  3027. fInitRsrvAcptInfo();
  3028. fGetPatInfo(2);
  3029. fGetDetlInfoHid();
  3030. // fDcAmtCalc();
  3031. }
  3032. ]]>
  3033. </script>
  3034. </input>
  3035. <select1 id="cmb_healexamdetlflag" visibility="hidden" appearance="minimal" style="left:370px; top:47px; width:100px; height:19px; ">
  3036. <choices>
  3037. <item>
  3038. <label>combo1</label>
  3039. <value>combo1</value>
  3040. </item>
  3041. </choices>
  3042. </select1>
  3043. <output id="opt_realamt" ref="/root/main/info/rcptinfo/realamt" class="font_pid" visibility="hidden" format="(-,+)#,###" style="left:600px; top:692px; width:82px; height:65px; text-align:right; vertical-align:bottom; "/>
  3044. <button id="btn_searchadd" class="btn2_letter4" style="left:1055px; top:56px; width:64px; height:19px; ">
  3045. <caption>추가검사</caption>
  3046. <script type="javascript" ev:event="DOMActivate">
  3047. <![CDATA[
  3048. fGetPkgCd("SMAHA00100", "A", "Y","nm" , "" , cmb_healexamdetlflag.value, opt_sex.value, "/root/temp/templst","","",ageCalc(model.getValue("/root/main/info/patinfo/item/rgstno1") , model.getValue("/root/main/info/patinfo/item/rgstno2") ));
  3049. // fGetPkgCd("SMAHA00100", "C", "N","nm" , "" , cmb_healexamdetlflag.value, opt_sex.value , "/root/main/info/rs" ,"","pkg",);
  3050. //fSetAddList 함수에서 선택한 추가검사 중복 체크
  3051. var crow = grd_addlst.rows;
  3052. fSetGnrlAddList(grd_addlst, 3, "/root/temp/templst/list", "Y","", model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd"));
  3053. // fSetAddAmt();
  3054. fSetReCalcAmt("Y");
  3055. grd_addlst.rebuild();
  3056. model.refresh();
  3057. ]]>
  3058. </script>
  3059. </button>
  3060. <button id="btn_ordmgt" class="btn2_letter4" style="left:1122px; top:56px; width:64px; height:19px; ">
  3061. <caption>처방관리</caption>
  3062. <script type="javascript" ev:event="DOMActivate">
  3063. <![CDATA[
  3064. setParameter ("SMAHA00700_PARAM1" , model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag") );
  3065. setParameter ("SMAHA00700_PARAM2" , model.getValue( ipt_pid.attribute("ref")) );
  3066. modal("SMAHA04060");
  3067. ]]>
  3068. </script>
  3069. </button>
  3070. <line id="line1" class="line_2" style="x1:310px; y1:184px; x2:850px; y2:184px; "/>
  3071. <line id="line2" class="line_2" style="x1:310px; y1:211px; x2:850px; y2:211px; "/>
  3072. <line id="line3" class="line_2" style="x1:310px; y1:238px; x2:850px; y2:238px; "/>
  3073. <line id="line4" class="line_2" style="x1:311px; y1:264px; x2:851px; y2:264px; "/>
  3074. <line id="line5" class="line_2" style="x1:311px; y1:315px; x2:851px; y2:315px; "/>
  3075. <line id="line6" class="line_2" style="x1:311px; y1:342px; x2:851px; y2:342px; "/>
  3076. <line id="line7" class="line_2" style="x1:310px; y1:368px; x2:850px; y2:368px; "/>
  3077. <line id="line8" class="line_2" style="x1:310px; y1:394px; x2:850px; y2:394px; "/>
  3078. <line id="line9" class="line_2" style="x1:310px; y1:420px; x2:850px; y2:420px; "/>
  3079. <line id="line10" class="line_2" style="x1:310px; y1:446px; x2:850px; y2:446px; "/>
  3080. <line id="line11" class="line_2" style="x1:310px; y1:472px; x2:850px; y2:472px; "/>
  3081. <!--2010.04.08 mykim 공단건진 2010년도 청구 자료연계시 변경 -->
  3082. <!--caption id="caption1" class="cell_1" style="left:310px; top:500px; width:70px; height:23px; vertical-align:middle; ">가입자성명</caption>
  3083. <input id="ipt_subscrhngnm" ref="/root/main/info/rsrvacptinfo/item/subscrhngnm" class="input_default" navindex="34" imemode="hangul" style="left:384px; top:502px; width:105px; height:19px; "/>
  3084. <caption id="caption4" class="cell_1" style="left:492px; top:500px; width:70px; height:23px; vertical-align:middle; ">주민번호</caption>
  3085. <input id="ipt_subscrrrgstno1" ref="/root/main/info/rsrvacptinfo/item/subscrrrgstno1" class="input_default" navindex="35" format="999999" style="left:566px; top:502px; width:51px; height:19px; "/>
  3086. <input id="ipt_subscrrrgstno2" ref="/root/main/info/rsrvacptinfo/item/subscrrrgstno2" class="input_default" navindex="36" format="9999999" style="left:620px; top:502px; width:75px; height:19px; "/-->
  3087. <caption id="caption1" class="cell_1" style="left:310px; top:500px; width:131px; height:23px; vertical-align:middle; ">건강검진 결과활용동의</caption>
  3088. <line id="line12" class="line_3" style="x1:310px; y1:524px; x2:850px; y2:524px; "/>
  3089. <caption id="caption21" class="cell_1" style="left:492px; top:83px; width:70px; height:23px; vertical-align:middle; ">건진장소</caption>
  3090. <select1 id="cmb_place" ref="/root/main/info/rsrvacptinfo/item/healexamplacecd" class="combo_essential" disabled="true" appearance="minimal" style="left:565px; top:85px; width:93px; height:19px; ">
  3091. <choices>
  3092. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  3093. <label ref="cdnm"/>
  3094. <value ref="cdid"/>
  3095. </itemset>
  3096. </choices>
  3097. </select1>
  3098. <select1 id="rdo_healexamplacecd" ref="/root/init/place/healexamplacecd" appearance="full" cols="2" overflow="visible" style="left:695px; top:55px; width:155px; height:20px; border-style:none; ">
  3099. <choices>
  3100. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  3101. <label ref="cdnm"/>
  3102. <value ref="cdid"/>
  3103. </itemset>
  3104. </choices>
  3105. <script type="javascript" ev:event="xforms-select">
  3106. <![CDATA[
  3107. var healexamplacecd = model.getValue("/root/main/info/rsrvacptinfo/item/healexamplacecd");
  3108. var statFlag = model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
  3109. if(statFlag < 'E') {
  3110. model.setValue( "/root/main/info/rsrvacptinfo/item/healexamplacecd", rdo_healexamplacecd.value);
  3111. }else {
  3112. model.setValue( "/root/main/info/rsrvacptinfo/item/healexamplacecd", healexamplacecd == ""||healexamplacecd == "-" ? rdo_healexamplacecd.value:healexamplacecd);
  3113. }
  3114. cmb_place.refresh();
  3115. ]]>
  3116. </script>
  3117. </select1>
  3118. <button id="btn_selpat" class="icon_search" style="left:473px; top:163px; width:16px; height:16px; ">
  3119. <caption/>
  3120. <script type="javascript" ev:event="DOMActivate">
  3121. <![CDATA[
  3122. fInitRsrvAcptInfo();
  3123. fSearchPatInfo("SMAHA04030", "pnm", ipt_pnm.currentText , "Y", "/root/main/info/patinfo/item");
  3124. fGetDetlInfoHid();
  3125. model.makeValue("/root/main/info/rsrvacptinfo/item/choiflag",model.getValue("/root/main/info/rsrvacptinfo/item/choiflag"));
  3126. //chk_healexamdetlflag.select(0);
  3127. model.refresh();
  3128. ]]>
  3129. </script>
  3130. </button>
  3131. <button id="btn_savegnrlinfo" class="btn5_letter8" visibility="visible" style="left:477px; top:188px; width:108px; height:19px; ">
  3132. <caption>수진자격정보저장</caption>
  3133. <script type="javascript" ev:event="onclick">
  3134. <![CDATA[
  3135. var v_rcptstat=model.getValue("/root/main/info/rsrvacptinfo/item/rcptstat");
  3136. var v_pid=model.getValue("/root/main/info/rsrvacptinfo/item/pid");
  3137. if(v_rcptstat == ""){ messageBox("사업장정보를 저장", "E001"); return false;
  3138. }else{
  3139. if( messageBox("건진자 수진자격정보를 ", "Q002") == 6 ) {
  3140. fSaveGnrlInfo("N");
  3141. }
  3142. }//else end
  3143. ]]>
  3144. </script>
  3145. </button>
  3146. <caption id="caption5" class="cell_1" style="left:687px; top:724px; width:79px; height:23px; text-align:center; vertical-align:middle; ">할인금액</caption>
  3147. <output id="opt_paydcamt" ref="/root/main/info/rcptinfo/paydcamt" class="output_fix" format="#,###" style="left:770px; top:726px; width:80px; height:19px; text-align:right; "/>
  3148. <caption id="caption7" class="cell_1" style="left:687px; top:700px; width:79px; height:23px; vertical-align:middle; ">보건소부담금</caption>
  3149. <output id="opt_payhealcntramt" ref="/root/main/info/rcptinfo/payhealcntramt" class="output_fix" format="#,###" style="left:769px; top:702px; width:80px; height:19px; text-align:right; "/>
  3150. <select1 id="rdo_pkgaddlist" ref="/root/main/info/rsrvacptinfo/item/etccd" appearance="full" cols="3" overflow="visible" style="left:860px; top:85px; width:322px; height:20px; border-style:none; ">
  3151. <choices>
  3152. <item>
  3153. <label>기본패키지</label>
  3154. <value>F13</value>
  3155. </item>
  3156. <item>
  3157. <label>추가패키지</label>
  3158. <value>F14</value>
  3159. </item>
  3160. <item>
  3161. <label>2차검사</label>
  3162. <value>F15</value>
  3163. </item>
  3164. </choices>
  3165. <script type="javascript" ev:event="onclick">
  3166. <![CDATA[
  3167. model.makeValue("/root/send/srchpkgflag", "");
  3168. model.makeValue("/root/send/srchhealexamflag", "G");
  3169. model.makeValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag"));
  3170. model.makeValue("/root/send/srchetccd" , model.getValue("/root/main/info/rsrvacptinfo/item/etccd"));
  3171. submit("TRAHA00431");
  3172. for (i = 1; i <= grd_pkglst.rows ; i++){
  3173. grd_pkglst.isReadOnly(i, grd_pkglst.colRef("sel")) = false;
  3174. for (j=1 ; j<grd_addlst.rows ; j++) {
  3175. if (grd_addlst.valueMatrix(j,grd_addlst.colRef("pkgcd")) == grd_pkglst.valueMatrix(i,grd_pkglst.colRef("pkgcd"))){
  3176. grd_pkglst.valueMatrix(i,grd_pkglst.colRef("sel")) = "Y";
  3177. grd_pkglst.isReadOnly(i, grd_pkglst.colRef("sel")) = true;
  3178. }
  3179. }
  3180. }
  3181. ]]>
  3182. </script>
  3183. </select1>
  3184. <input id="ipt_tagno" ref="/root/main/info/taginfo/tagno" class="input_default" format="999" style="left:719px; top:85px; width:64px; height:19px; ">
  3185. <script type="javascript" ev:event="xforms-value-changed">
  3186. <![CDATA[
  3187. model.setValue("/root/send/srchtagno",model.getValue("/root/main/info/taginfo/tagno"));
  3188. model.setValue("/root/send/srchhealexamplacecd" , model.getValue("/root/main/info/rsrvacptinfo/item/healexamplacecd"));
  3189. //var ret = submit("TRAHA00114",false); 2008-06-12 이성인
  3190. var ret = submit("TRAHA00114",false);
  3191. if(ret) {
  3192. var tagstat = model.getValue("/root/tag/taginfo/tagstat");
  3193. if(tagstat == "0") {
  3194. var tagno = model.getValue("/root/main/info/taginfo/tagno");
  3195. var vb = messageBox("["+ tagno +"]태그는 이미 지급된 태급입니다.\n 반납" , "S001" );
  3196. if(6 == vb ) {
  3197. model.makeValue("/root/send/taginfo/tagflag" ,"R");
  3198. model.makeValue("/root/send/taginfo/tagno" ,model.getValue("/root/main/info/taginfo/tagno"));
  3199. model.makeValue("/root/send/taginfo/instcd" ,getUserInfo("dutplceinstcd"));
  3200. model.makeValue("/root/send/taginfo/healexamplacecd" , model.getValue("/root/main/info/rsrvacptinfo/item/healexamplacecd"));
  3201. // if(submit("TXAHA00109",false)) { 2008-06-12 이성인
  3202. if(submit("TXAHA00109",false)) {
  3203. btn_tag.attribute("text") = "태그지급";
  3204. ipt_tagno.value = "";
  3205. }
  3206. }else if(7 == vb || 2 == vb) {
  3207. ipt_tagno.value = "";
  3208. model.setFocus("ipt_tagno");
  3209. }
  3210. }
  3211. }
  3212. ipt_tagno.refresh();
  3213. ]]>
  3214. </script>
  3215. <script type="javascript" ev:event="onkeyup">
  3216. <![CDATA[
  3217. if( event.keyCode == 13 ){
  3218. }
  3219. ]]>
  3220. </script>
  3221. </input>
  3222. <caption id="caption10" class="cell_1" style="left:661px; top:83px; width:55px; height:23px; vertical-align:middle; ">태그번호</caption>
  3223. <button id="button3" class="btn2_letter4" style="left:785px; top:85px; width:64px; height:19px; ">
  3224. <caption>태그지급</caption>
  3225. <script type="javascript" ev:event="DOMActivate">
  3226. <![CDATA[
  3227. var suppStat = model.getValue("/root/tag/taginfo/tagstat");
  3228. var tagno = model.getValue("/root/main/info/taginfo/tagno");
  3229. var statFlag = model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
  3230. var healexamplacecd = model.getValue("/root/main/info/rsrvacptinfo/item/healexamplacecd");
  3231. if(suppStat == "") {
  3232. suppStat = model.getValue("/root/main/info/taginfo/suppstat");
  3233. }
  3234. if("0" == suppStat) {
  3235. if(6 == messageBox("[" + tagno + "]태그 반납을", "Q004")) {
  3236. model.makeValue("/root/send/taginfo/tagflag" ,"R");
  3237. model.makeValue("/root/send/taginfo/tagno" ,model.getValue("/root/main/info/taginfo/tagno") );
  3238. model.makeValue("/root/send/taginfo/healexamplacecd" ,model.getValue("/root/main/info/taginfo/healexamplacecd") );
  3239. model.makeValue("/root/send/taginfo/instcd" ,getUserInfo("dutplceinstcd") );
  3240. if(submit("TXAHA00109")) {
  3241. btn_tag.attribute("text") = "태그지급";
  3242. ipt_tagno.value = "";
  3243. ipt_tagno.disabled = false;
  3244. }
  3245. }
  3246. }else {
  3247. if(statFlag < "E") {
  3248. messageBox("접수 전에 태그를 지급", "E001");
  3249. return;
  3250. }
  3251. if(tagno == "") {
  3252. messageBox("태그번호를","C001");
  3253. return;
  3254. }
  3255. if(messageBox("["+tagno+"]태그 지급을","Q004")) {
  3256. model.makeValue("/root/send/taginfo/tagflag" ,"P");
  3257. model.makeValue("/root/send/taginfo/rsrvdd" ,model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd"));
  3258. model.makeValue("/root/send/taginfo/rsrvno" ,model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno"));
  3259. model.makeValue("/root/send/taginfo/pid" ,model.getValue("/root/main/info/rsrvacptinfo/item/pid"));
  3260. model.makeValue("/root/send/taginfo/orddd" ,model.getValue("/root/main/info/rsrvacptinfo/item/orddd"));
  3261. model.makeValue("/root/send/taginfo/healexamdetlflag" ,model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag"));
  3262. model.makeValue("/root/send/taginfo/tagno" ,model.getValue("/root/main/info/taginfo/tagno"));
  3263. model.makeValue("/root/send/taginfo/instcd" ,getUserInfo("posinstcd") );
  3264. if(submit("TXAHA00109")) {
  3265. btn_tag.attribute("text") = "태그반납";
  3266. ipt_tagno.disabled = true;
  3267. }
  3268. }
  3269. }
  3270. ipt_tagno.refresh();
  3271. ]]>
  3272. </script>
  3273. </button>
  3274. <switch id="switch1" style="left:860px; top:449px; width:329px; height:105px; ">
  3275. <case id="case_judg" selected="true">
  3276. <datagrid id="datagrid6" nodeset="/root/main/info/judgone" caption="판정^판정코드^판정명^2차재검코드" colsep="^" colwidth="62, 19, 123, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:5px; width:317px; height:93px; ">
  3277. <col ref="judgcd"/>
  3278. <col ref="judgdetlcd"/>
  3279. <col ref="etcdetlnm"/>
  3280. <col ref="dulppkgcd" type="input"/>
  3281. </datagrid>
  3282. </case>
  3283. <case id="case_cnst">
  3284. <caption id="caption40" class="cell_1" style="left:4px; top:26px; width:92px; height:23px; vertical-align:middle; ">외 래 여 부</caption>
  3285. <button id="btn_saversrvinfo" class="btn5_letter6" style="left:238px; top:4px; width:86px; height:19px; ">
  3286. <caption>예약정보저장</caption>
  3287. <script type="javascript" ev:event="DOMActivate">
  3288. <![CDATA[
  3289. fSaveRsrvInfo();
  3290. ]]>
  3291. </script>
  3292. </button>
  3293. <caption id="cap_rsltcnstflag" class="cell_1" style="left:4px; top:52px; width:92px; height:23px; vertical-align:middle; ">결 과 상 담</caption>
  3294. <select1 id="cmb_rsltcnstlst" ref="/root/main/info/rsltcnstinfo/choicnst/rsltrsrvid" appearance="minimal" style="left:98px; top:80px; width:226px; height:19px; ">
  3295. <choices>
  3296. <itemset nodeset="/root/main/info/rsltcnstinfo/cnstlst/cnst">
  3297. <label ref="rsltrsrvnm"/>
  3298. <value ref="rsltrsrvid"/>
  3299. </itemset>
  3300. </choices>
  3301. <script type="javascript" ev:event="xforms-value-changed">
  3302. <![CDATA[
  3303. var idx = cmb_rsltcnstlst.focusIndex;
  3304. copyNodesetType("/root/main/info/rsltcnstinfo/choicnst" , "/root/main/info/rsltcnstinfo/cnstlst/cnst[" + (idx + 1) + "]" , "replace");
  3305. var rsltRsrvId = model.getValue("/root/main/info/rsltcnstinfo/choicnst/rsltrsrvid");
  3306. // 기존 내역을 선택 했을경우에는 조회만 가능
  3307. if(rsltRsrvId == "-" || rsltRsrvId == "") {
  3308. rdo_outexamyn.disabled = false;
  3309. cmb_rsltcnstflag.disabled = false;
  3310. btn_rsltcnstrsrv.disabled = false;
  3311. btn_rsltcnstrsrvcncl.disabled = true;
  3312. }else {
  3313. rdo_outexamyn.disabled = true;
  3314. cmb_rsltcnstflag.disabled = true;
  3315. btn_rsltcnstrsrv.disabled = true;
  3316. btn_rsltcnstrsrvcncl.disabled = false;
  3317. }
  3318. model.refresh();
  3319. ]]>
  3320. </script>
  3321. </select1>
  3322. <select1 id="rdo_outexamyn" ref="/root/main/info/rsltcnstinfo/choicnst/outexamyn" appearance="full" cols="2" overflow="visible" style="left:98px; top:28px; width:138px; height:20px; border-style:none; ">
  3323. <choices>
  3324. <item>
  3325. <label>건진외래</label>
  3326. <value>Y</value>
  3327. </item>
  3328. <item>
  3329. <label>결과상담</label>
  3330. <value>N</value>
  3331. </item>
  3332. </choices>
  3333. <script type="javascript" ev:event="xforms-value-changed">
  3334. <![CDATA[
  3335. /*
  3336. * 최초이력:2009-03-13
  3337. * 건진외래와 현재 시점은 연동시간은 연동되지 않음 인원 캐파만 잡음
  3338. * 외래 검사 일경우는 내부검사 결과상담의 구분을 미선택 하며 비활성화 시킨다.
  3339. */
  3340. var outexamyn = rdo_outexamyn.value;
  3341. if(outexamyn == "Y") {
  3342. cmb_rsltcnstflag.select(0);
  3343. cmb_rsltcnstflag.disabled = true;
  3344. btn_rsltcnstrsrv.disabled = false;
  3345. }else if(outexamyn == "N"){
  3346. cmb_rsltcnstflag.disabled = false;
  3347. }
  3348. ]]>
  3349. </script>
  3350. </select1>
  3351. <select1 id="cmb_rsltcnstflag" ref="/root/main/info/rsltcnstinfo/choicnst/rsltcnstflag" class="combo_essential" appearance="minimal" style="left:98px; top:54px; width:93px; height:19px; ">
  3352. <choices>
  3353. <itemset nodeset="/root/init/baseinfo/rsltcnstflaglst/S080">
  3354. <label ref="cdnm"/>
  3355. <value ref="cdid"/>
  3356. </itemset>
  3357. </choices>
  3358. <script type="javascript" ev:event="xforms-value-changed">
  3359. <![CDATA[
  3360. /*
  3361. * 최초이력:2009-03-13
  3362. * 내부검사 선택 시에만 활성화 되며 내부상담 시 1회로 제한다.
  3363. * 결과상담 구분은 우편을 제외 한 모둔 구분은 상담 시간을 잡는다.
  3364. * 건진 공통코드의 cmt의 상태가 Y 일경우 상담예약 팝업을 띄우면 N경우 화면은 띄우지 않으며 상담예약 버튼은 비활성 시킨다.
  3365. */
  3366. /*
  3367. var nodeList = instance1.selectNodes("/root/init/baseinfo/rsltcnstflaglst/S080");
  3368. var idx = cmb_rsltcnstflag.focusIndex;
  3369. // 공통코드의 비고
  3370. var cmt = nodeList.item(idx).cmt.text;
  3371. if(cmt == "Y") {
  3372. btn_rsltcnstrsrv.disabled = false;
  3373. }else if (cmt == "N") {
  3374. btn_rsltcnstrsrv.disabled = true;
  3375. }*/
  3376. ]]>
  3377. </script>
  3378. </select1>
  3379. <caption id="caption8" class="cell_1" style="left:4px; top:78px; width:92px; height:23px; vertical-align:middle; ">결과상담예약일</caption>
  3380. <button id="btn_rsltcnstrsrvcncl" class="btn2_letter4" style="left:260px; top:54px; width:64px; height:19px; ">
  3381. <caption>상담취소</caption>
  3382. <script type="javascript" ev:event="DOMActivate">
  3383. <![CDATA[
  3384. fGetRsltRsrvDateTime("d");
  3385. cmb_rsltcnstlst.refresh();
  3386. ]]>
  3387. </script>
  3388. </button>
  3389. <button id="btn_rsltcnstrsrv" class="btn2_letter4" style="left:193px; top:54px; width:64px; height:19px; ">
  3390. <caption>상담예약</caption>
  3391. <script type="javascript" ev:event="DOMActivate">
  3392. <![CDATA[
  3393. fGetRsltRsrvDateTime("i");
  3394. cmb_rsltcnstlst.refresh();
  3395. ]]>
  3396. </script>
  3397. </button>
  3398. <line id="line13" class="line_2" style="x1:4px; y1:76px; x2:323px; y2:76px; "/>
  3399. <line id="line14" class="line_2" style="x1:4px; y1:50px; x2:323px; y2:50px; "/>
  3400. <line id="line15" class="line_2" style="x1:4px; y1:24px; x2:323px; y2:24px; "/>
  3401. </case>
  3402. </switch>
  3403. <button id="btn_fstjudg" class="btn_sw" group="tab_2" style="left:861px; top:428px; width:84px; height:22px; ">
  3404. <caption>1차판정조회</caption>
  3405. <script type="javascript" ev:event="DOMActivate">
  3406. <![CDATA[
  3407. model.toggle("case_judg");
  3408. btn_fstjudg.selected = true;
  3409. ]]>
  3410. </script>
  3411. </button>
  3412. <button id="btn_cnst" class="btn_sw" group="tab_2" style="left:945px; top:428px; width:84px; height:22px; ">
  3413. <caption>결과상담관리</caption>
  3414. <script type="javascript" ev:event="DOMActivate">
  3415. <![CDATA[
  3416. model.toggle("case_cnst");
  3417. btn_cnst.selected = true;
  3418. ]]>
  3419. </script>
  3420. </button>
  3421. <output id="dcamt" ref="/root/main/info/rsrvacptinfo/item/dcamt" class="output_fix" style="left:780px; top:450px; width:30px; height:19px; "/>
  3422. <output id="adddcamt" ref="/root/main/info/rsrvacptinfo/item/adddcamt" class="output_fix" style="left:820px; top:450px; width:30px; height:19px; "/>
  3423. <caption id="caption9" style="left:811px; top:450px; width:10px; height:20px; ">/</caption>
  3424. <select1 id="rdo_healexamagryn" ref="/root/main/info/rsrvacptinfo/item/healexamagryn" appearance="full" cols="2" overflow="visible" style="left:445px; top:500px; width:130px; height:23px; border-style:none; ">
  3425. <choices>
  3426. <item>
  3427. <label>동의함</label>
  3428. <value>Y</value>
  3429. </item>
  3430. <item>
  3431. <label>동의안함</label>
  3432. <value>N</value>
  3433. </item>
  3434. </choices>
  3435. </select1>
  3436. <caption id="caption4" class="cell_1" style="left:580px; top:500px; width:135px; height:23px; vertical-align:middle; ">암검진 결과활용동의</caption>
  3437. <select1 id="rdo_canceragryn" ref="/root/main/info/rsrvacptinfo/item/canceragryn" appearance="full" cols="2" overflow="visible" style="left:720px; top:500px; width:130px; height:23px; border-style:none; ">
  3438. <choices>
  3439. <item>
  3440. <label>동의함</label>
  3441. <value>Y</value>
  3442. </item>
  3443. <item>
  3444. <label>동의안함</label>
  3445. <value>N</value>
  3446. </item>
  3447. </choices>
  3448. </select1>
  3449. <caption id="caption11" class="cell_1" style="left:580px; top:527px; width:135px; height:23px; vertical-align:middle; ">구강검진 결과활용동의</caption>
  3450. <select1 id="rdo_oralagryn" ref="/root/main/info/rsrvacptinfo/item/oralagryn" appearance="full" cols="2" overflow="visible" style="left:720px; top:526px; width:130px; height:23px; border-style:none; ">
  3451. <choices>
  3452. <item>
  3453. <label>동의함</label>
  3454. <value>Y</value>
  3455. </item>
  3456. <item>
  3457. <label>동의안함</label>
  3458. <value>N</value>
  3459. </item>
  3460. </choices>
  3461. </select1>
  3462. </xhtml:body>
  3463. </xhtml:html>